Registry / networking / rustix

rustix

JSON →
library1.1.3rscratesunverified

Safe Rust bindings to POSIX/Unix/Linux/Winsock-like syscalls

# Cargo.toml [dependencies] rustix = "1.1.3"
INSTALL
IMPORT
SIG · RUSTIX
R
rustix
networkingrustv1.1.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.

open
use rustix::fs::open;

Open a file using rustix syscall bindings

use rustix::fs::{open, Mode, OFlags}; fn main() -> Result<(), rustix::io::Errno> { let fd = open("example.txt", OFlags::RDONLY, Mode::empty())?; println!("File descriptor: {}", fd.as_raw_fd()); Ok(()) }
Debug
Known issues
gotchaSome functions are only available on specific platforms (e.g., Linux-only).
fix
Check the documentation for platform-specific features and use conditional compilation.
affects: >=0.0.0
Upgrade
Version history
1.1.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
rustix — cargo add rustix · libregistry