An open API service indexing awesome lists of open source software.

https://github.com/kstep/gcloud-env

Read Google Cloud Run runtime environment
https://github.com/kstep/gcloud-env

Last synced: 7 months ago
JSON representation

Read Google Cloud Run runtime environment

Awesome Lists containing this project

README

          

# gcloud-env

Read [Google Cloud Run](https://cloud.google.com/run) runtime environment as a Rust struct.

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