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
12KB
184 lines
workflow-store
Part of the workflow-rs
application framework.
File I/O abstraction that supports browser localstorage.
Features
- A single set of per-operating-system filename configuration options with fallbacks. (i.e. filename for
macos
orlinux
will fallback onunix
orgeneric
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