qubit-fs

Pluggable filesystem abstraction for Rust

Rust CI Coverage

Qubit FS is a pluggable filesystem abstraction for Rust.

It defines provider-neutral contracts for local filesystems, WebDAV, FTP, OSS, HDFS, and other storage backends. The root crate intentionally does not define a closed FsKind enum; concrete backends are registered through qubit-spi.

Core concepts

Example

use qubit_fs::{FileSystems, FsResult};

fn read_report() -> FsResult<Vec<u8>> {
    // Provider registration normally happens during application bootstrap:
    // FileSystems::register(LocalFileSystemProvider::new())?;

    let resource = FileSystems::resource("file:///var/data/report.csv")?;
    resource.read_all()
}

Documentation