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

envs

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

4 releases

new 0.2.1 Nov 18, 2024
0.2.0 Nov 4, 2024
0.1.1 Oct 29, 2024
0.1.0 Oct 29, 2024

#407 in Filesystem

Download history 107/week @ 2024-10-23 202/week @ 2024-10-30 53/week @ 2024-11-06 112/week @ 2024-11-13

474 downloads per month
Used in envs-cli

MIT license

27KB
544 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.1.0"
use envs::get_environment_info;

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

No runtime deps