24 releases

0.18.3 Oct 30, 2024
0.18.2 Mar 29, 2024
0.18.1 Dec 1, 2023
0.18.0 Jun 11, 2023
0.12.2 Nov 19, 2021

#65 in Operating systems

Download history 63810/week @ 2024-07-30 63222/week @ 2024-08-06 57169/week @ 2024-08-13 59285/week @ 2024-08-20 57605/week @ 2024-08-27 64720/week @ 2024-09-03 59531/week @ 2024-09-10 59797/week @ 2024-09-17 62115/week @ 2024-09-24 63652/week @ 2024-10-01 66822/week @ 2024-10-08 61286/week @ 2024-10-15 73682/week @ 2024-10-22 72772/week @ 2024-10-29 82970/week @ 2024-11-05 79069/week @ 2024-11-12

320,455 downloads per month
Used in 266 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