16 releases (6 breaking)

new 0.6.2 Mar 2, 2021
0.6.1 Mar 2, 2021
0.5.2 Feb 23, 2021
0.4.2 Feb 20, 2021
0.0.1 Jan 12, 2021

#40 in Operating systems

Download history 1026/week @ 2021-01-09 1407/week @ 2021-01-16 1316/week @ 2021-01-23 2685/week @ 2021-01-30 1519/week @ 2021-02-06 2626/week @ 2021-02-13 2762/week @ 2021-02-20 2441/week @ 2021-02-27

4,803 downloads per month
Used in 27 crates (18 directly)

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

110KB
2K SLoC

unsafe-io

Non-owning unsafe I/O

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

Have you ever found yourself writing essentially the same code twice, once for RawFd for Posix-ish platforms and once for RawHandle or RawSocket for Windows platforms? This crate abstracts over those platform differences.

Being non-owning, these handles operate much like raw pointers in Rust. They are considered safe to construct, but unsafe to use in any way that depends on the resource they point to.

For a safe owning API, see the io-streams crate.

Dependencies

~0–1.8MB
~34K SLoC