11 unstable releases (4 breaking)

0.5.0 May 7, 2024
0.4.0 Oct 15, 2023
0.3.2 Feb 22, 2023
0.3.1 Aug 25, 2022
0.1.1 Nov 28, 2021

#2306 in Web programming

Download history 33243/week @ 2024-03-14 24075/week @ 2024-03-21 44228/week @ 2024-03-28 26816/week @ 2024-04-04 37155/week @ 2024-04-11 39454/week @ 2024-04-18 32789/week @ 2024-04-25 29890/week @ 2024-05-02 34838/week @ 2024-05-09 44962/week @ 2024-05-16 38944/week @ 2024-05-23 40734/week @ 2024-05-30 43418/week @ 2024-06-06 38671/week @ 2024-06-13 38660/week @ 2024-06-20 32882/week @ 2024-06-27

161,728 downloads per month
Used in 24 crates (4 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–18MB
~249K SLoC