Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LIB REQUEST]: Add nix Rust crate #6212

Closed
canova opened this issue Mar 2, 2024 · 2 comments · Fixed by #6472
Closed

[LIB REQUEST]: Add nix Rust crate #6212

canova opened this issue Mar 2, 2024 · 2 comments · Fixed by #6472
Labels
lang-rust new-libs request Request for something

Comments

@canova
Copy link
Contributor

canova commented Mar 2, 2024

Library name

nix

Library description

Rust friendly bindings to *nix APIs.

Library repository

https://crates.io/crates/nix

Motivation

It provides a very easy way of using *nix APIs. It's a safe alternative to the unsafe APIs exposed by the libc crate. It's the 101th crate at the moment in crates.io, I guess that's why it missed the top 100 by one.

Example simple snippet for testing:

use nix;

fn main() {
    println!("tid: {}", nix::unistd::gettid());
}
@canova canova added new-libs request Request for something labels Mar 2, 2024
@OfekShilon
Copy link
Member

We'd welcome a PR for this! Today we rely almost entirely on contributions for compiler/library requests, and (we hope) the contribution process isn't very painful.
Docs, example PR: #6253. We'll also be happy to try and help in our discord.

@canova
Copy link
Contributor Author

canova commented May 11, 2024

Sure, I wanted to contribute sooner but couldn't get a chance. I will send a PR soon.

mattgodbolt pushed a commit that referenced this issue May 14, 2024
This PR fixes #6212 and infra PR is here:
compiler-explorer/infra#1299

It adds the nix crate that will be useful when users need to access more
user friendly *nix APIs.
Thanks!
OfekShilon pushed a commit to OfekShilon/compiler-explorer that referenced this issue May 14, 2024
This PR fixes compiler-explorer#6212 and infra PR is here:
compiler-explorer/infra#1299

It adds the nix crate that will be useful when users need to access more
user friendly *nix APIs.
Thanks!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang-rust new-libs request Request for something
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants