Registry / observability / sysinfo

sysinfo

JSON →
library0.39.3rscratesunverified

Library to get system information such as processes, CPUs, disks, components and networks

# Cargo.toml [dependencies] sysinfo = "0.39.3"
INSTALL
IMPORT
SIG · SYSINFO
S
sysinfo
observabilityrustv0.39.3
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.

System
use sysinfo::System;

Retrieve system information like memory and CPU count.

use sysinfo::System; let mut sys = System::new_all(); sys.refresh_all(); println!("Total memory: {} KB", sys.total_memory()); println!("Number of CPUs: {}", sys.cpus().len());
Debug
Known issues
gotchaOn Linux, some information (e.g., disk usage) requires root privileges or specific kernel support.
fix
Run the application with appropriate permissions or check for errors when accessing certain data.
affects: >=0.39.0
Upgrade
Version history
0.39.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
sysinfo — cargo add sysinfo · libregistry