Cross-platform configuration and data saving between desktop and web
On desktop, saving is backed by filesystem and APIs and uses the platform-specific data
locations. On web, saving is backed by the LocalStorage browser API.
As an end user, all you need to worry about is which
Location you want to save to:
Cache, which is short-lived and may not persist between runs of the program
Config, for storing long-term configuration
Data, for storing long-term large data blobs.
Where the data should be written to and read from
An error that can occur during a save or load operation
Load some data from the given profile using Serde
Load some raw bytes from the given profile
Save some arbitrary data to the given location using Serde
Save some raw bytes to the given profile