fs4
Extended utilities for working with files and filesystems in Rust.
This is a fork of the [fs2-rs](https://github.com/danburkert/fs2-rs) crate, the aim for this fork is to support `async`.
[

][Github-url]
[

][CI-url]
[

][codecov-url]
[

][doc-url]
[

][crates-url]
[

][rustc-url]
[

][license-apache-url]
[

][license-mit-url]
Installation
std
toml
[dependencies]
fs4 = { version = "0.5", features = ["sync"] }
tokio runtime
toml
[dependencies]
fs4 = { version = "0.5", features = ["tokio-async"] }
async-std runtime
toml
[dependencies]
fs4 = { version = "0.5", features = ["std-async"] }
smol runtime
toml
[dependencies]
fs4 = { version = "0.5", features = ["smol-async"] }
Features
- [x] file descriptor duplication.
- [x] file locks.
- [x] file (pre)allocation.
- [x] file allocation information.
- [x] filesystem space usage information.
- [x] [tokio support](https://crates.io/crates/tokio)
- [x] [smol support](https://crates.io/crates/smol)
- [x] [async-std support](https://crates.io/crates/async-std)
License
fs4
is primarily distributed under the terms of both the MIT license and the
Apache License (Version 2.0).
See LICENSE-APACHE, LICENSE-MIT for details.
Copyright (c) 2021 Al Liu.
Copyright (c) 2015 Dan Burkert.