| Crates.io | opfs-project |
| lib.rs | opfs-project |
| version | 0.1.6 |
| created_at | 2025-08-12 09:16:48.045151+00 |
| updated_at | 2025-09-11 08:04:28.487431+00 |
| description | A Rust library for working with the Origin Private File System (OPFS) in WebAssembly applications |
| homepage | https://github.com/utooland/opfs-project |
| repository | https://github.com/utooland/opfs-project |
| max_upload_size | |
| id | 1791730 |
| size | 127,022 |
A Rust library for working with the Origin Private File System (OPFS) in WebAssembly applications.
cargo install wasm-packwasm-pack buildwasm-pack test --firefox --headlessopfs::read_dir(path) - Read directory contentsopfs::read(path) - Read file contentsopfs::write(path, content) - Write content to fileopfs::create_dir_all(path) - Create directory and all parent directoriesopfs::remove(path) - Remove a fileopfs::exists(path) - Check if file or directory existspackage_manager::install_deps(package_lock) - Install dependencies from package-lock.jsonfuse::fuse_link(src, dst) - Create fuse link between source and destination directoriesfuse::read(path) - Read file content with fuse.link supportfuse::read_dir(path) - Read directory contents with fuse.link supportTests are written using wasm-bindgen-test and can be run with:
wasm-pack test --firefox --headless
Note: Tests require a modern browser with OPFS support (Firefox 116+, Chrome 114+).
MIT