{"id":57698,"library":"rustix","title":"Rustix","description":"Safe Rust bindings to POSIX/Unix/Linux/Winsock-like syscalls","status":"active","version":"1.1.3","language":"rust","source_language":null,"source_url":"https://github.com/bytecodealliance/rustix","tags":["syscalls","posix","linux","unix","safe"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nrustix = \"1.1.3\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add rustix","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"open","correct":"use rustix::fs::open;"}],"quickstart":{"code":"use rustix::fs::{open, Mode, OFlags};\n\nfn main() -> Result<(), rustix::io::Errno> {\n    let fd = open(\"example.txt\", OFlags::RDONLY, Mode::empty())?;\n    println!(\"File descriptor: {}\", fd.as_raw_fd());\n    Ok(())\n}","lang":"rust","description":"Open a file using rustix syscall bindings"},"warnings":[{"fix":"Check the documentation for platform-specific features and use conditional compilation.","message":"Some functions are only available on specific platforms (e.g., Linux-only).","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'bind':4 'linux':10 'posix':9 'posix/unix/linux/winsock-like':6 'rust':3 'rustix':1 'safe':2,12 'syscal':7,8 'unix':11","created_at":"2026-06-16T15:54:01.133304+00:00","updated_at":"2026-06-16T15:54:01.133304+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/bytecodealliance/rustix","github":"https://github.com/bytecodealliance/rustix","docs":"https://docs.rs/rustix/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking","utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}