Registry / utility / sys-info

sys-info

JSON →
library0.9.1rscratesunverified

Get system information in Rust, supporting Linux, macOS, illumos, Solaris, FreeBSD, OpenBSD, and Windows.

# Cargo.toml [dependencies] sys-info = "0.9.1"
INSTALL
IMPORT
SIG · SYS-INFO
S
sys-info
utilityrustv0.9.1
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.

sys_info
use sys_info;

Retrieves and prints the OS type and hostname.

use sys_info; fn main() { let os_type = sys_info::os_type().unwrap(); let hostname = sys_info::hostname().unwrap(); println!("OS: {}, Hostname: {}", os_type, hostname); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.9.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
sys-info — cargo add sys-info · libregistry