1 stable release

1.0.0 Feb 6, 2025

#2282 in Web programming

Download history 262/week @ 2025-02-06 630/week @ 2025-02-13 1604/week @ 2025-02-20 1810/week @ 2025-02-27

4,306 downloads per month
Used in 7 crates (2 directly)

MIT license

11KB
94 lines

google-cloud-metadata

Google Cloud Platform GCE check library.

crates.io

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

~6–18MB
~229K SLoC