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

#2216 in Web programming

Download history 51802/week @ 2024-09-01 52740/week @ 2024-09-08 46797/week @ 2024-09-15 52952/week @ 2024-09-22 61157/week @ 2024-09-29 56205/week @ 2024-10-06 60151/week @ 2024-10-13 59804/week @ 2024-10-20 56494/week @ 2024-10-27 44972/week @ 2024-11-03 70415/week @ 2024-11-10 70201/week @ 2024-11-17 49626/week @ 2024-11-24 70450/week @ 2024-12-01 68709/week @ 2024-12-08 63705/week @ 2024-12-15

256,612 downloads per month
Used in 48 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

~7–17MB
~229K SLoC