#file-storage #local-storage #file-io #file-access #file-path #storage #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

#224 in WebAssembly

Download history 832/week @ 2024-11-16 282/week @ 2024-11-23 333/week @ 2024-11-30 391/week @ 2024-12-07 213/week @ 2024-12-14 146/week @ 2024-12-21 179/week @ 2024-12-28 336/week @ 2025-01-04 247/week @ 2025-01-11 325/week @ 2025-01-18 396/week @ 2025-01-25 297/week @ 2025-02-01 309/week @ 2025-02-08 350/week @ 2025-02-15 544/week @ 2025-02-22 458/week @ 2025-03-01

1,738 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

~19–34MB
~565K SLoC