Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sunfishcode/linux-raw-sys
Generated bindings for Linux's userspace API
https://github.com/sunfishcode/linux-raw-sys
Last synced: 27 days ago
JSON representation
Generated bindings for Linux's userspace API
- Host: GitHub
- URL: https://github.com/sunfishcode/linux-raw-sys
- Owner: sunfishcode
- License: other
- Created: 2021-06-11T22:46:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-25T23:03:29.000Z (about 2 months ago)
- Last Synced: 2024-10-03T19:35:51.962Z (about 1 month ago)
- Language: Rust
- Size: 3.6 MB
- Stars: 48
- Watchers: 9
- Forks: 36
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
This crate contains bindgen-generated bindings for Linux's userspace API.
This is primarily of interest if you want to make raw system calls directly,
which is tedious and error prone and not necessary for most use cases. For a
minimal type-safe, memory-safe, and I/O-safe API to the Linux system calls
built on these bindings, see the [rustix crate].The full bindings are quite large, so they've been split up into modules and
cargo features. By default, `general` and `errno` are enabled, which provide
most things needed by general-purpose code.To regenerate the generated bindings, run `cargo update && cd gen && cargo run --release`.
## Similar crates
This is similar to [linux-sys], except the bindings are generated offline,
rather than in a build.rs, making downstream builds simpler. And, this crate
has bindings for more headers, as well as supplementary definitions not
exported by Linux's headers but nonetheless needed by userspace.# Minimum Supported Rust Version (MSRV)
This crate currently works on the version of [Rust on Debian stable], which is
currently Rust 1.63. This policy may change in the future, in minor version
releases, so users using a fixed version of Rust should pin to a specific
version of this crate.[linux-sys]: https://crates.io/crates/linux-sys
[rustix crate]: https://github.com/bytecodealliance/rustix#linux-raw-syscall-support