16 unstable releases (3 breaking)
0.8.2 | Apr 2, 2024 |
---|---|
0.8.1 | Mar 8, 2024 |
0.8.0 | Feb 25, 2024 |
0.7.0 | Sep 30, 2023 |
0.5.4 | Dec 31, 2021 |
#29 in Filesystem
397,536 downloads per month
Used in 118 crates
(33 directly)
79KB
1.5K
SLoC
fs4
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
[dependencies] fs4 = { version = "0.8", features = ["sync"] }
-
[dependencies] fs4 = { version = "0.8", features = ["tokio"] }
-
[dependencies] fs4 = { version = "0.8", features = ["async-std"] }
-
[dependencies] fs4 = { version = "0.8", features = ["smol"] }
Features
- file locks.
- file (pre)allocation.
- file allocation information.
- filesystem space usage information.
- tokio support
- smol support
- async-std 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.
Dependencies
~2–16MB
~184K SLoC