Registry / utility / gloo-storage

gloo-storage

JSON →
library0.4.0rscratesunverified

Convenience crate for working with local and session storage in browser

# Cargo.toml [dependencies] gloo-storage = "0.4.0"
INSTALL
IMPORT
SIG · GLOO-STORAGE
G
gloo-storage
utilityrustv0.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LocalStorage
✓ use gloo_storage::LocalStorage;

Store and retrieve values from browser local storage.

use gloo_storage::LocalStorage; fn main() { LocalStorage::set("key", "value").unwrap(); let _value: String = LocalStorage::get("key").unwrap(); }
Debug
Known issues
gotchaOnly works in WebAssembly targets (browser).
fix
Ensure your crate is compiled for wasm32-unknown-unknown target.
affects: >=0.4.0
Upgrade
Version history
0.4.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
gloo-storage — cargo add gloo-storage · libregistry