tauri_store/
lib.rs

1#![cfg_attr(docsrs, feature(doc_auto_cfg))]
2#![doc = include_str!("../README.md")]
3#![doc(html_favicon_url = "https://tb.dev.br/tauri-store/favicon.ico")]
4
5mod collection;
6mod error;
7mod event;
8mod manager;
9mod migration;
10pub mod prelude;
11mod store;
12
13#[cfg(feature = "plugin")]
14mod command;
15
16#[cfg(feature = "plugin")]
17mod plugin;
18
19pub use collection::{CollectionMarker, DefaultMarker, Handle, OnLoadFn, StoreCollection};
20pub use error::{BoxResult, Error, Result};
21pub use event::{
22  EventSource, STORE_CONFIG_CHANGE_EVENT, STORE_STATE_CHANGE_EVENT, STORE_UNLOAD_EVENT,
23};
24pub use manager::ManagerExt;
25pub use migration::{Migration, MigrationContext, Migrator};
26pub use serde_json::Value as Json;
27pub use store::{
28  JsonMarshaler, Marshaler, MarshalingError, PrettyJsonMarshaler, SaveStrategy, Store, StoreId,
29  StoreOptions, StoreState, WatcherId,
30};
31
32#[cfg(feature = "derive")]
33pub use tauri_store_macros::Collection;
34
35#[cfg(feature = "plugin")]
36pub use plugin::{init, Builder};
37
38#[cfg(feature = "marshaler-toml")]
39pub use store::{PrettyTomlMarshaler, TomlMarshaler};