#vfs #async

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

#315 in Filesystem

Download history 4/week @ 2022-11-30 1/week @ 2022-12-14 41/week @ 2022-12-21 70/week @ 2022-12-28 22/week @ 2023-01-04 33/week @ 2023-01-11 4/week @ 2023-01-18 7/week @ 2023-01-25 8/week @ 2023-02-01 54/week @ 2023-02-08 18/week @ 2023-02-15 17/week @ 2023-02-22 45/week @ 2023-03-01 3/week @ 2023-03-08 13/week @ 2023-03-15

84 downloads per month

MIT license

15KB
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.8–7MB
~123K SLoC