#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

#523 in Filesystem


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