gcloud-env

Crates.iogcloud-env
lib.rsgcloud-env
version0.1.0
sourcesrc
created_at2022-04-26 16:15:04.699776
updated_at2022-04-26 16:15:04.699776
descriptionRead Google Cloud Run runtime environment
homepage
repository
max_upload_size
id575532
size2,524
Konstantin Stepanov (kstep)

documentation

README

gcloud-env

Read Google Cloud Run runtime environment as a Rust struct.

use gcloud_env::GCloudRunEnv;

fn main() {
    let genv = GCloudRunEnv::from_env().expect("Not running from Cloud Run");
    println!("Starting with config: {:?}", genv);
    start_server(genv.port);
}
Commit count: 0

cargo fmt