async-vfs-os

Crates.ioasync-vfs-os
lib.rsasync-vfs-os
version0.56.0
sourcesrc
created_at2021-12-30 23:16:01.675616
updated_at2023-03-01 18:49:58.972553
descriptionAsync Virtual File System backed by OS File System
homepage
repositoryhttps://github.com/prabirshrestha/async-vfs
max_upload_size
id505545
size31,497
Prabir Shrestha (prabirshrestha)

documentation

README

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.
Commit count: 128

cargo fmt