Registry / other / caps
library0.5.6rscratesunverified

A pure-Rust library to work with Linux capabilities.

# Cargo.toml [dependencies] caps = "0.5.6"
INSTALL
IMPORT
SIG · CAPS
C
caps
otherrustv0.5.6
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.

CapSet
✓ use caps::CapSet;

Read the effective capabilities of the current process.

use caps::CapSet; fn main() -> Result<(), Box<dyn std::error::Error>> { let caps = CapSet::effective()?; println!("{:?}", caps); Ok(()) }
Debug
Known issues
gotchaOnly works on Linux systems.
fix
Use conditional compilation or check target_os.
affects: >=0.5.0
Upgrade
Version history
0.5.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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