10 releases
0.4.0 | Oct 15, 2023 |
---|---|
0.3.2 | Feb 22, 2023 |
0.3.1 | Aug 25, 2022 |
0.2.1 | Jun 23, 2022 |
0.1.1 | Nov 28, 2021 |
#18 in #gcp
120,262 downloads per month
Used in 14 crates
(3 directly)
6KB
94 lines
google-cloud-metadata
Google Cloud Platform GCE check library.
Installation
[dependencies]
google-cloud-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
~6–19MB
~284K SLoC