#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

#503 in WebAssembly

Download history 719/week @ 2024-08-17 542/week @ 2024-08-24 717/week @ 2024-08-31 1393/week @ 2024-09-07 444/week @ 2024-09-14 372/week @ 2024-09-21 407/week @ 2024-09-28 357/week @ 2024-10-05 429/week @ 2024-10-12 607/week @ 2024-10-19 458/week @ 2024-10-26 242/week @ 2024-11-02 359/week @ 2024-11-09 832/week @ 2024-11-16 282/week @ 2024-11-23 321/week @ 2024-11-30

1,809 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
~512K SLoC