#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

#67 in WebAssembly

Download history 373/week @ 2024-09-18 369/week @ 2024-09-25 399/week @ 2024-10-02 327/week @ 2024-10-09 593/week @ 2024-10-16 551/week @ 2024-10-23 315/week @ 2024-10-30 305/week @ 2024-11-06 795/week @ 2024-11-13 336/week @ 2024-11-20 344/week @ 2024-11-27 370/week @ 2024-12-04 253/week @ 2024-12-11 197/week @ 2024-12-18 131/week @ 2024-12-25 291/week @ 2025-01-01

969 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
~515K SLoC