10 stable releases

1.5.0 Oct 9, 2020
1.4.0 Oct 4, 2020
1.3.0 Sep 14, 2020
1.1.1 Aug 26, 2020
0.0.0 May 10, 2019

#476 in Asynchronous

Download history 5923/week @ 2021-02-23 6248/week @ 2021-03-02 6695/week @ 2021-03-09 5921/week @ 2021-03-16 5971/week @ 2021-03-23 7537/week @ 2021-03-30 9548/week @ 2021-04-06 8279/week @ 2021-04-13 9225/week @ 2021-04-20 9428/week @ 2021-04-27 9534/week @ 2021-05-04 7993/week @ 2021-05-11 7765/week @ 2021-05-18 7856/week @ 2021-05-25 8923/week @ 2021-06-01 8669/week @ 2021-06-08

32,635 downloads per month
Used in 108 crates (12 directly)

Apache-2.0 OR MIT

61KB
481 lines

async-fs

Build License Cargo Documentation

Async filesystem primitives.

This crate is an async version of std::fs.

Implementation

This crate uses blocking to offload blocking I/O onto a thread pool.

Examples

Create a new file and write some bytes to it:

use async_fs::File;
use futures_lite::io::AsyncWriteExt;

let mut file = File::create("a.txt").await?;
file.write_all(b"Hello, world!").await?;
file.flush().await?;

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~635KB