Expand description
Persistent key-value cart storage: the save file.
Carts reach this through four ABI imports (storage_set / storage_get /
storage_remove / storage_clear, see docs/ABI.md); values cross the
boundary as JSON text and live here as parsed serde_json::Values.
Native frontends back the store with a JSON file under the user’s cache
directory, keyed by cart name; the web player and headless verify keep
it in memory. The whole store serializes to at most 128 K — the same one
number as every other cart limit (docs/LIMITS.md).
Structs§
- Storage
- A cart’s key-value store, plus its optional disk backing.
Constants§
- MAX_
BYTES - Serialized-size cap for the whole store: 128 K, shared with the fuel, memory and cart-size limits.