#container #system #virtualization #environments #detecting #os #type

envs

📦 A Rust library for detecting various system environments, including virtualization, containers, OS types, and more

6 releases

0.2.3 Dec 7, 2024
0.2.2 Dec 6, 2024
0.2.1 Nov 18, 2024
0.1.1 Oct 29, 2024

#512 in Filesystem

Download history 181/week @ 2024-10-26 165/week @ 2024-11-02 16/week @ 2024-11-09 147/week @ 2024-11-16 22/week @ 2024-11-23 69/week @ 2024-11-30 219/week @ 2024-12-07 9/week @ 2024-12-14

324 downloads per month
Used in envs-cli

MIT license

28KB
556 lines

Table of Contents↗️

envs

📦 A Rust library for detecting various system environments, including virtualization, containers, OS types, and more.


Usage

Add this to your Cargo.toml:

[dependencies]
envs = "0.2.2"
use envs::get_environment_info;

fn main() {
    let info = get_environment_info();
    println!("{:?}", info);
}

No runtime deps