Crates.io | gcloud-env |
lib.rs | gcloud-env |
version | 0.1.0 |
source | src |
created_at | 2022-04-26 16:15:04.699776 |
updated_at | 2022-04-26 16:15:04.699776 |
description | Read Google Cloud Run runtime environment |
homepage | |
repository | |
max_upload_size | |
id | 575532 |
size | 2,524 |
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);
}