Crates.io | google-cloud-metadata |
lib.rs | google-cloud-metadata |
version | 0.5.0 |
source | src |
created_at | 2021-11-26 05:24:53.990162 |
updated_at | 2024-05-07 13:26:14.48448 |
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 | 6,250 |
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);
}