24 releases (7 breaking)
| 0.13.1 | Mar 8, 2025 |
|---|---|
| 0.12.0 | Nov 30, 2024 |
| 0.9.1 | Jul 30, 2024 |
| 0.8.1 | Mar 8, 2024 |
| 0.5.4 | Dec 31, 2021 |
#24 in Filesystem
1,696,546 downloads per month
Used in 465 crates
(84 directly)
82KB
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.13", features = ["sync"] } -
[dependencies] fs4 = { version = "0.13", features = ["async-std"] } -
[dependencies] fs4 = { version = "0.13", features = ["fs-err2"] } -
[dependencies] fs4 = { version = "0.13", features = ["fs-err2-tokio"] } -
[dependencies] fs4 = { version = "0.13", features = ["fs-err3"] } -
[dependencies] fs4 = { version = "0.13", features = ["fs-err3-tokio"] } -
[dependencies] fs4 = { version = "0.13", features = ["smol"] } -
[dependencies] fs4 = { version = "0.13", features = ["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) 2025 Al Liu.
Copyright (c) 2015 Dan Burkert.
Dependencies
~2–16MB
~174K SLoC