Crates.io | gcloud-metadata |
lib.rs | gcloud-metadata |
version | 1.0.1 |
created_at | 2025-02-06 23:36:10.036518+00 |
updated_at | 2025-09-12 08:59:08.605673+00 |
description | Google Cloud Platform rust client. |
homepage | |
repository | https://github.com/yoshidan/google-cloud-rust/tree/main/foundation/metadata |
max_upload_size | |
id | 1546258 |
size | 35,181 |
Google Cloud Platform GCE check library.
[dependencies]
google-cloud-metadata = { package="gcloud-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);
}