#pipe #tokio #async-io #file #stdio #async

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

#59 in #stdio

Download history 239/week @ 2024-07-22 280/week @ 2024-07-29 272/week @ 2024-08-05 279/week @ 2024-08-12 221/week @ 2024-08-19 243/week @ 2024-08-26 334/week @ 2024-09-02 301/week @ 2024-09-09 248/week @ 2024-09-16 354/week @ 2024-09-23 332/week @ 2024-09-30 366/week @ 2024-10-07 340/week @ 2024-10-14 494/week @ 2024-10-21 401/week @ 2024-10-28 305/week @ 2024-11-04

1,569 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

~4.5MB
~64K SLoC