There is the library &#x27;libc&#x27; which is a collection of interfaces to (g)libc functions together with the necessary constants and structs [1].<p>There is the library &#x27;nix-rust&#x27; [2], which aims to provide a wrapper of &#x27;libc&#x27; in idomatic Rust.<p>Unlike &#x27;libc&#x27;, &#x27;nix-rust&#x27; does not have a consistent code quality and organization yet. However, Both are missing various bindings for various platforms.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;libc" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;libc</a>
[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;nix-rust&#x2F;nix" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nix-rust&#x2F;nix</a>