11 unstable releases (4 breaking)

new 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

#2232 in Web programming

Download history 22995/week @ 2024-01-22 26226/week @ 2024-01-29 23147/week @ 2024-02-05 19150/week @ 2024-02-12 24745/week @ 2024-02-19 33749/week @ 2024-02-26 29755/week @ 2024-03-04 32515/week @ 2024-03-11 28036/week @ 2024-03-18 35061/week @ 2024-03-25 36451/week @ 2024-04-01 31209/week @ 2024-04-08 37173/week @ 2024-04-15 37986/week @ 2024-04-22 28191/week @ 2024-04-29 32637/week @ 2024-05-06

136,878 downloads per month
Used in 23 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
~259K SLoC