#web-storage #session-storage #local-storage

macro no-std derive_web_storage

Easily associate Storage values to variables and manage them without manually using the Web Storage API

1 stable release

new 1.0.0 Mar 30, 2025

#1467 in Web programming


Used in storage_data

Custom license

18KB
309 lines

Refer to the storage_data crate, don't use this crate independently of it.

The storage_data crate allows to easily associate Local/Session storage data through the StorageData struct and to retrieve and set the value without requiring to manually interacting with the Web Storage API, and this crate is made to allow creating a struct where associating multiple StorageData is made much simpler and maintainable.


lib.rs:

Refer to the storage_data crate, don't use this crate independently of it.

The storage_data crate allows to easily associate Local/Session storage data through the StorageData struct and to retrieve and set the value without requiring to manually interacting with the Web Storage API, and this crate is made to allow creating a struct where associating multiple StorageData is made much simpler and maintainable.

Dependencies

~0.7–1.1MB
~22K SLoC