7 releases (breaking)
0.56.0 | Mar 1, 2023 |
---|---|
0.55.0 | Dec 29, 2022 |
0.54.0 | Dec 25, 2022 |
0.53.0 | Dec 25, 2022 |
0.50.0 | Dec 30, 2021 |
#1237 in Filesystem
52 downloads per month
17KB
356 lines
async-vfs-os
OS filesystem backed async virtual filesystem for async-vfs.
Supports async-std, smol and tokio runtimes.
Usage
Adding dependencies in Cargo.toml
. Use one of the following runtimes.
async-vfs = "x.x.x"
async-vfs-os = { version = "x.x.x", features = ["runtime-async-std"] } # for async-std runtime
async-vfs-os = { version = "x.x.x", features = ["runtime-smol"] } # for smol runtime
async-vfs-os = { version = "x.x.x", features = ["runtime-tokio"] } # for tokio runtime
Code:
use async_vfs::Vfs;
use async_vfs_os::OsFs;
let vfs = OsFs::new("/tmp"); // pass the root.
Dependencies
~0.5–15MB
~149K SLoC