#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

#506 in Filesystem

Download history 205/week @ 2024-10-28 155/week @ 2024-11-04 2/week @ 2024-11-11 164/week @ 2024-11-18 6/week @ 2024-11-25 216/week @ 2024-12-02 91/week @ 2024-12-09

477 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