#file-storage #local-storage #file-io #file-access #file-path #wasm-framework #browser

workflow-store

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

35 releases (14 breaking)

0.18.0 Sep 7, 2024
0.15.0 Jul 26, 2024
0.11.0 Feb 25, 2024
0.10.2 Dec 24, 2023
0.3.12 Mar 11, 2023

#304 in WebAssembly

Download history 363/week @ 2024-10-29 273/week @ 2024-11-05 658/week @ 2024-11-12 501/week @ 2024-11-19 334/week @ 2024-11-26 318/week @ 2024-12-03 324/week @ 2024-12-10 185/week @ 2024-12-17 145/week @ 2024-12-24 259/week @ 2024-12-31 320/week @ 2025-01-07 230/week @ 2025-01-14 386/week @ 2025-01-21 355/week @ 2025-01-28 293/week @ 2025-02-04 375/week @ 2025-02-11

1,467 downloads per month
Used in 8 crates (4 directly)

MIT/Apache

315KB
7K SLoC

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

~17–32MB
~524K SLoC