[][src]Crate gestalt

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.

Re-exports

pub use serde;

Enums

Location

Where the data should be written to and read from

SaveError

An error that can occur during a save or load operation

Functions

load

Load some data from the given profile using Serde

load_raw

Load some raw bytes from the given profile

save

Save some arbitrary data to the given location using Serde

save_raw

Save some raw bytes to the given profile