22 releases

0.18.1 Dec 1, 2023
0.18.0 Jun 11, 2023
0.17.5-pre.0 May 24, 2023
0.17.2 Feb 2, 2023
0.12.2 Nov 19, 2021

#97 in Operating systems

Download history 35645/week @ 2023-12-03 41088/week @ 2023-12-10 30021/week @ 2023-12-17 17245/week @ 2023-12-24 34384/week @ 2023-12-31 37876/week @ 2024-01-07 49006/week @ 2024-01-14 44925/week @ 2024-01-21 50844/week @ 2024-01-28 44068/week @ 2024-02-04 47611/week @ 2024-02-11 48114/week @ 2024-02-18 55287/week @ 2024-02-25 53236/week @ 2024-03-03 44888/week @ 2024-03-10 53553/week @ 2024-03-17

209,586 downloads per month
Used in 208 crates (19 directly)

Apache-2.0…

130KB
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–14MB
~149K SLoC