#async #vfs #shim

async-vfs-os

Async Virtual File System backed by OS File System

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

#1502 in Filesystem

Download history 2/week @ 2023-11-01 1/week @ 2023-11-08 9/week @ 2023-11-15 7/week @ 2023-11-22 31/week @ 2023-11-29 7/week @ 2023-12-13 7/week @ 2023-12-20 8/week @ 2023-12-27 7/week @ 2024-01-03 7/week @ 2024-01-17 16/week @ 2024-01-24 14/week @ 2024-01-31 1/week @ 2024-02-07 80/week @ 2024-02-14

112 downloads per month

MIT license

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.6–13MB
~144K SLoC