Registry / utility / proc-mounts

proc-mounts

JSON →
library0.3.0rscratesunverified

Fetch active mounts and swaps on a Linux system by parsing /proc/mounts and /proc/swaps.

# Cargo.toml [dependencies] proc-mounts = "0.3.0"
INSTALL
IMPORT
SIG · PROC-MOUNTS
P
proc-mounts
utilityrustv0.3.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.

MountInfo
✓ use proc_mounts::MountInfo;

Lists all active mounts on a Linux system.

use proc_mounts::MountInfo; fn main() { let mounts = MountInfo::new().unwrap(); for mount in mounts.iter() { println!("{} mounted on {}", mount.source, mount.dest); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
proc-mounts — cargo add proc-mounts · libregistry