gcloud-env 0.1.0

Read Google Cloud Run runtime environment
Documentation
  • Coverage
  • 0%
    0 out of 12 items documented0 out of 2 items with examples
  • Size
  • Source code size: 4.08 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.54 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • kstep

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);
}