Extended utilities for working with files and filesystems in Rust.
This is a fork of the fs2-rs crate, the aim for this fork is to support async and replace libc by rustix.
Installation
-
std
[] = { = "0.12", = ["sync"] } -
[] = { = "0.12", = ["async-std"] } -
[] = { = "0.12", = ["fs-err2"] } -
[] = { = "0.12", = ["fs-err2-tokio"] } -
[] = { = "0.12", = ["fs-err3"] } -
[] = { = "0.12", = ["fs-err3-tokio"] } -
[] = { = "0.12", = ["smol"] } -
[] = { = "0.12", = ["tokio"] }
Features
- file locks.
- file (pre)allocation.
- file allocation information.
- filesystem space usage information.
- async-std support
- fs-err
- smol support
- tokio support
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.