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

#166 in Web programming

Download history 54228/week @ 2024-12-17 20998/week @ 2024-12-24 32509/week @ 2024-12-31 70223/week @ 2025-01-07 58901/week @ 2025-01-14 54507/week @ 2025-01-21 58645/week @ 2025-01-28 63920/week @ 2025-02-04 65545/week @ 2025-02-11 72459/week @ 2025-02-18 70146/week @ 2025-02-25 79183/week @ 2025-03-04 88996/week @ 2025-03-11 77935/week @ 2025-03-18 73201/week @ 2025-03-25 69024/week @ 2025-04-01

323,114 downloads per month
Used in 54 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

~7–22MB
~232K SLoC