Registry / utility / os-info

os-info

JSON →
library3.15.0rscratesunverified

Detect the operating system type and version.

# Cargo.toml [dependencies] os_info = "3.15.0"
INSTALL
IMPORT
SIG · OS-INFO
O
os-info
utilityrustv3.15.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Info
use os_info::Info;

Get current OS type and version.

use os_info::Info; fn main() { let info = Info::get(); println!("OS: {} {}", info.os_type(), info.version()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.15.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
os-info — cargo add os-info · libregistry