#asynchronous #file #pipe #stdio #tokio

tokio-file-unix

Asynchronous support for epollable files via Tokio on Unix-like platforms

9 releases (5 breaking)

0.6.0 Dec 6, 2020
0.5.1 Apr 30, 2018
0.4.2 Jan 28, 2018
0.4.1 Oct 8, 2017
0.1.0 Feb 5, 2017

#155 in Asynchronous

Download history 174/week @ 2020-11-06 145/week @ 2020-11-13 168/week @ 2020-11-20 187/week @ 2020-11-27 179/week @ 2020-12-04 150/week @ 2020-12-11 171/week @ 2020-12-18 132/week @ 2020-12-25 183/week @ 2021-01-01 180/week @ 2021-01-08 190/week @ 2021-01-15 176/week @ 2021-01-22 185/week @ 2021-01-29 209/week @ 2021-02-05 190/week @ 2021-02-12 215/week @ 2021-02-19

2,160 downloads per month
Used in 5 crates

MIT/Apache

23KB
143 lines

tokio-file-unix

Documentation Crates.io Travis CI Build Status

Asynchronous support for file-like objects via Tokio. Only supports Unix-like platforms.

This crate is primarily intended for pipes and other files that support nonblocking I/O. Regular files do not support nonblocking I/O, so this crate has no effect on them.

Usage

Add this to your Cargo.toml:

[dependencies]
tokio-file-unix = "0.5.1"

Next, add this to the root module of your crate:

extern crate tokio_file_unix;

Examples

See the examples directory as well as the documentation.

License

Dual-licensed under Apache and MIT.


lib.rs:

A utility library that adds asynchronous support to file-like objects on Unix-like platforms.

This crate is primarily intended for pipes and other files that support nonblocking I/O. Regular files do not support nonblocking I/O, so this crate has no effect on them.

See File for an example of how a file can be made suitable for asynchronous I/O.

Dependencies

~2.5MB
~38K SLoC