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

#2225 in Web programming

Download history 37746/week @ 2024-07-25 33300/week @ 2024-08-01 39918/week @ 2024-08-08 43845/week @ 2024-08-15 55397/week @ 2024-08-22 50547/week @ 2024-08-29 51897/week @ 2024-09-05 49376/week @ 2024-09-12 50806/week @ 2024-09-19 64819/week @ 2024-09-26 52810/week @ 2024-10-03 58182/week @ 2024-10-10 63644/week @ 2024-10-17 52843/week @ 2024-10-24 50890/week @ 2024-10-31 47865/week @ 2024-11-07

231,123 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
~225K SLoC