12 releases
0.5.1 | Feb 5, 2025 |
---|---|
0.5.0 | May 7, 2024 |
0.4.0 | Oct 15, 2023 |
0.3.2 | Feb 22, 2023 |
0.1.1 | Nov 28, 2021 |
#2135 in Web programming
250,026 downloads per month
Used in 52 crates
(4 directly)
11KB
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
~7–18MB
~232K SLoC