Registry / utility / procfs

procfs

JSON →
library0.18.0rscratesunverified

Interface to the linux procfs pseudo-filesystem

# Cargo.toml [dependencies] procfs = "0.18.0"
INSTALL
IMPORT
SIG · PROCFS
P
procfs
utilityrustv0.18.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.

Process
✓ use procfs::Process;

Gets information about the current process from /proc.

use procfs::Process; fn main() { let me = Process::myself().unwrap(); println!("PID: {}", me.pid); }
Debug
Known issues
gotchaOnly works on Linux systems
fix
Use conditional compilation or platform-specific code for other OSes
affects: *
Upgrade
Version history
0.18.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
procfs — cargo add procfs · libregistry