#google-cloud #metadata #gcp #client

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

#1690 in Web programming

Download history 70201/week @ 2024-11-17 49626/week @ 2024-11-24 70450/week @ 2024-12-01 68709/week @ 2024-12-08 65536/week @ 2024-12-15 22026/week @ 2024-12-22 28237/week @ 2024-12-29 67592/week @ 2025-01-05 64861/week @ 2025-01-12 50736/week @ 2025-01-19 59353/week @ 2025-01-26 61563/week @ 2025-02-02 68250/week @ 2025-02-09 62913/week @ 2025-02-16 76785/week @ 2025-02-23 73742/week @ 2025-03-02

284,152 downloads per month
Used in 52 crates (3 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

~6–18MB
~231K SLoC