From 1b6a04ca5504955c571d1c97504fb45ea0befee4 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 8 Jan 2024 01:21:28 +0400 Subject: Initial vendor packages Signed-off-by: Valentin Popov --- vendor/linux-raw-sys/README.md | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 vendor/linux-raw-sys/README.md (limited to 'vendor/linux-raw-sys/README.md') diff --git a/vendor/linux-raw-sys/README.md b/vendor/linux-raw-sys/README.md new file mode 100644 index 0000000..b44ef22 --- /dev/null +++ b/vendor/linux-raw-sys/README.md @@ -0,0 +1,44 @@ +
+

linux-raw-sys

+ +

+ Generated bindings for Linux's userspace API +

+ +

+ Github Actions CI Status + zulip chat + crates.io page + docs.rs docs +

+
+ +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 -- cgit v1.2.3