#wasm #framework #storage #browser #localstorage

workflow-store

File storage access crate abstracting file I/O and browser localstorage

6 releases

0.3.12 Mar 11, 2023
0.3.10 Feb 7, 2023
0.3.2 Jan 31, 2023
0.0.0 Jan 26, 2023

#473 in WebAssembly

50 downloads per month
Used in workflow-rs

MIT/Apache

12KB
184 lines

workflow-store

Part of the workflow-rs application framework.


File I/O abstraction that supports browser localstorage.

github crates.io docs.rs license

Features

  • A single set of per-operating-system filename configuration options with fallbacks. (i.e. filename for macos or linux will fallback on unix or generic if not defined)
  • Automatic resolution of user home-folder is using ~ as a path prefix.
  • Support for in-browser storage using localstorage and base64 encoding for binary data.

This crate allows you to create a single file reference while specifying multiple per-operating-system file paths, including in-browser localstorage keyname. Subsequent read/write operations will work against the specified paths.

Dependencies

~7–14MB
~260K SLoC