#api #file #network

posish

Safe Rust bindings to POSIX-ish libc APIs and syscalls

16 releases (5 breaking)

new 0.5.9 Jan 22, 2021
0.5.8 Jan 21, 2021
0.5.2 Dec 8, 2020
0.4.1 Oct 27, 2020
0.0.0 Sep 15, 2020

#31 in Unix APIs

Download history 138/week @ 2020-10-05 468/week @ 2020-10-12 461/week @ 2020-10-19 676/week @ 2020-10-26 118/week @ 2020-11-02 107/week @ 2020-11-09 13/week @ 2020-11-16 22/week @ 2020-11-23 10/week @ 2020-11-30 954/week @ 2020-12-07 490/week @ 2020-12-14 6/week @ 2020-12-21 3/week @ 2020-12-28 1673/week @ 2021-01-04 926/week @ 2021-01-11 1288/week @ 2021-01-18

2,005 downloads per month
Used in 11 crates (6 directly)

Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT

99KB
2.5K SLoC

posish

Safe Rust bindings to POSIX-ish libc APIs and syscalls

A Bytecode Alliance project

Github Actions CI Status crates.io page docs.rs docs

posish provides safe wrappers to POSIX-ish libc APIs and syscalls.

posish is focused on functionality that isn't already provided by std or other low-level crates such as getrandom and errno. It prioritizes safe interfaces, including considering raw file descriptors to be equivalent to pointers in terms of making APIs unsafe, in the spirit of std::os::unix::io::FromRawFd::from_raw_fd being unsafe and RawFd not implementing AsRawFd/IntoRawFd.

posish is relatively low-level and does not support Windows; for higher-level and portable APIs to this functionality, see the system-interface, cap-std, and fs-set-times crates.

Dependencies

~110KB