Crates.io | google-cloud-metadata |
lib.rs | google-cloud-metadata |
version | 0.5.1 |
created_at | 2021-11-26 05:24:53.990162+00 |
updated_at | 2025-02-05 02:57:57.425106+00 |
description | Google Cloud Platform rust client. |
homepage | |
repository | https://github.com/yoshidan/google-cloud-rust/tree/main/foundation/metadata |
max_upload_size | |
id | 487906 |
size | 35,488 |
Google Cloud Platform GCE check library.
[dependencies]
google-cloud-metadata = <version>
use google_cloud_metadata::*;
#[tokio::test]
async fn test_on_gce() {
// true: server is running on the GCP such as GCE and GKE.
let result = on_gce().await;
assert_eq!(true, result);
}