25 releases

0.18.4 Dec 4, 2024
0.18.3 Oct 30, 2024
0.18.2 Mar 29, 2024
0.18.1 Dec 1, 2023
0.12.2 Nov 19, 2021

#60 in Operating systems

Download history 57313/week @ 2024-08-21 57518/week @ 2024-08-28 65771/week @ 2024-09-04 58834/week @ 2024-09-11 61530/week @ 2024-09-18 59974/week @ 2024-09-25 64775/week @ 2024-10-02 64748/week @ 2024-10-09 65026/week @ 2024-10-16 73211/week @ 2024-10-23 77336/week @ 2024-10-30 79425/week @ 2024-11-06 81025/week @ 2024-11-13 80098/week @ 2024-11-20 65783/week @ 2024-11-27 67561/week @ 2024-12-04

308,540 downloads per month
Used in 276 crates (19 directly)

Apache-2.0…

125KB
3K SLoC

io-extras

File/socket handle/descriptor utilities

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

This crate provides a few miscellaneous utilities related to I/O:

  • HandleOrSocket types and traits for Windows, which abstract over Windows *Handle* and their corresponding Windows *Socket* types and traits.

  • Grip types and traits, which abstract over the aforementioned Windows HandleOrSocket types and traits and their corresponding non-Windows Fd types and traits.

  • RawReadable and RawWritable, which adapt a raw Fd/Handle to implement the Read and Write traits, respectively.

  • ReadWrite traits, and supporting types, which provide abstractions over types with one or two I/O resources, for reading and for writing.

Minimum Supported Rust Version (MSRV)

This crate currently works on Rust 1.63, when default features are enabled. Some of the optional features have stricter requirements.

Dependencies

~0–11MB
~135K SLoC