nix
nix copied to clipboard
Rust friendly bindings to *nix APIs
Closes #1787 . This PR makes `FileStat` a wrapper type and exposes each field of the original struct as a single API.
Motivation is explained in #1602, new version allows to receive data without performing allocations inside the receive loop and to use received data without extra copying. This pull request contains...
Nix's code hasn't changed. However, Serde accidentally raised its MSRV to 1.51.0 in a patch release, due to a Cargo bug. They don't plan to change it back. Nix does...
Fixes #1709
Whenever updating the MSRV to 1.63.0 for any reason: * Eliminate lazy_static, since `Mutex::new` is now const.
Most Nix functions that involve files use `RawFd` arguments, but those are difficult to use correctly. For example, it's easy to use-after-close. Rust nightly just added I/O Safety traits that...
At least on BSD, and it looks like in some circumstances on Linux too. Quoting the NetBSD man page: ``` fdopendir(fd) The fdopendir() function associates a directory stream with the...
On `nix 0.24.x` the following is necessary to always manage to extract the IP address (and maybe something similar is needed for IPv6, but I have not encountered the problem...
Currently, all the fields of this [struct](https://docs.rs/nix/latest/nix/sys/stat/struct.FileStat.html) are numeric types cause we are directly exporting `libc::stat` as `FileStat` ```rust pub use libc::stat as FileStat; ``` But we do have wrapper...
Make `nix` [TPROXY](https://github.com/ahupowerdns/tproxydoc/blob/master/tproxy.md)-ready.