23 releases

0.18.2 Mar 29, 2024
0.18.1 Dec 1, 2023
0.18.0 Jun 11, 2023
0.17.2 Feb 2, 2023
0.12.2 Nov 19, 2021

#97 in Operating systems

Download history 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 53571/week @ 2024-03-17 50145/week @ 2024-03-24 59189/week @ 2024-03-31 30912/week @ 2024-04-07

195,888 downloads per month
Used in 213 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
~144K SLoC