Expand description
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 programConfig
, for storing long-term configurationData
, for storing long-term large data blobs.
Re-exports§
pub use serde;
Enums§
- Where the data should be written to and read from
- An error that can occur during a save or load operation
Functions§
- 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