Crates.io | envs |
lib.rs | envs |
version | |
source | src |
created_at | 2024-10-29 04:17:00.527103 |
updated_at | 2024-12-07 06:46:17.456035 |
description | 📦 A Rust library for detecting various system environments, including virtualization, containers, OS types, and more. |
homepage | https://github.com/lvillis/envs |
repository | https://github.com/lvillis/envs |
max_upload_size | |
id | 1426486 |
Cargo.toml error: | TOML parse error at line 36, column 1 | 36 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
envs
📦 A Rust library for detecting various system environments, including virtualization, containers, OS types, and more.
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);
}