1 stable release
new 1.0.0 | Feb 6, 2025 |
---|
#2322 in Web programming
154 downloads per month
Used in 7 crates
(2 directly)
11KB
94 lines
google-cloud-metadata
Google Cloud Platform GCE check library.
Installation
[dependencies]
google-cloud-metadata = { package="gcloud-metadata", version="..." }
Usage
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);
}
Dependencies
~7–18MB
~231K SLoC