#google-cloud #gcp #google-api

google-cloud-metadata

Google Cloud Platform rust client

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

Download history 56625/week @ 2024-10-26 44406/week @ 2024-11-02 66542/week @ 2024-11-09 72364/week @ 2024-11-16 51998/week @ 2024-11-23 66913/week @ 2024-11-30 71468/week @ 2024-12-07 65917/week @ 2024-12-14 22469/week @ 2024-12-21 27739/week @ 2024-12-28 66926/week @ 2025-01-04 65345/week @ 2025-01-11 50452/week @ 2025-01-18 59517/week @ 2025-01-25 61605/week @ 2025-02-01 66997/week @ 2025-02-08

250,026 downloads per month
Used in 52 crates (4 directly)

MIT license

11KB
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

~7–18MB
~232K SLoC