nicoburns / blessed-rs

A community guide to the Rust ecosystem
https://blessed.rs
1.32k stars 77 forks source link

rustix #135

Closed joshka closed 1 month ago

joshka commented 1 month ago

Rustix (200M downloads) is a memory safe and I/O safe wrapper of many posix / unix / linux calls, with more idiomatic rust like bindings for errors and such. It can be replace usages of libc, nix, etc.

I'd suggest adding this in the system section, but not quite sure whether it's best to put it next to libc or nix. There's some overlap in both (and for sockets there's even overlap in the windows side of things).

hniksic commented 1 month ago

rustix seems like an "obvious" alternative to nix. Another feature I'd mention is that it seems more efficient by default, as it compiles into Rust-only code that issues syscalls directly without the overhead of libc.

nicoburns commented 1 month ago

I feel like it probably ought to go next to (above) nix?

hniksic commented 1 month ago

I feel like it probably ought to go next to (above) nix?

I concur. The two appear to be direct competitors.