#google-cloud #gcp #google-api

google-cloud-metadata

Google Cloud Platform rust client

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

Download history 19761/week @ 2023-12-07 18414/week @ 2023-12-14 15565/week @ 2023-12-21 12875/week @ 2023-12-28 20601/week @ 2024-01-04 20855/week @ 2024-01-11 24646/week @ 2024-01-18 23520/week @ 2024-01-25 25931/week @ 2024-02-01 19276/week @ 2024-02-08 20470/week @ 2024-02-15 31840/week @ 2024-02-22 31692/week @ 2024-02-29 31454/week @ 2024-03-07 33243/week @ 2024-03-14 18352/week @ 2024-03-21

120,262 downloads per month
Used in 14 crates (3 directly)

MIT license

6KB
94 lines

google-cloud-metadata

Google Cloud Platform GCE check library.

crates.io

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