Registry / utility / rlimit

rlimit

JSON →
library0.11.0rscratesunverified

A Rust library for getting and setting resource limits on Unix-like systems.

# Cargo.toml [dependencies] rlimit = "0.11.0"
INSTALL
IMPORT
SIG · RLIMIT
R
rlimit
utilityrustv0.11.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.

Resource
use rlimit::Resource;

Get current resource limits for number of open files.

use rlimit::Resource; fn main() -> Result<(), Box<dyn std::error::Error>> { let (soft, hard) = Resource::NOFILE.get()?; println!("Current NOFILE limits: soft={}, hard={}", soft, hard); Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.11.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
rlimit — cargo add rlimit · libregistry