Crate tauri_store_utils

Source
Expand description

§tauri-store

Persistent stores for Tauri.

§Features

  • Save your stores to disk.
  • Synchronize across multiple windows.
  • Debounce or throttle store updates.
  • Access the stores from both JavaScript and Rust.

§Documentation

Check the documentation for more information on how to install and use the plugins.

§Plugins

Currently, the following plugins are available:

NameVersionWorks with
tauri-storenpmEverything
@tauri-store/pinianpmVue, Nuxt
@tauri-store/sveltenpmSvelte
@tauri-store/valtionpmReact
@tauri-store/vuenpmVue, Nuxt
@tauri-store/zustandnpmReact

§Supported Tauri Version

The plugins require Tauri 2.0 or later.

Structs§

Debounce
Debounces a function call.
MutexOption
Naive Mutex<Option<T>> wrapper.
Throttle
Throttles a function call.

Traits§

RemoteCallable
A dyn compatible trait intended to be used with types like Debounce and Throttle.
Semverversion

Functions§

read_file
Reads the contents of a file and deserializes it into a value.
set_interval
Calls the given function at regular intervals.
write_file
Writes a JSON-serializable value to a file.