tauri-plugin-sync-state-macros 0.1.0

Derive macro (#[derive(SyncState)]) for tauri-plugin-sync-state.
Documentation

tauri-plugin-sync-state-macros

Procedural derive macro for tauri-plugin-sync-state.

Provides #[derive(SyncState)], which implements the SyncState trait for a struct or enum using its type name as the slice NAME (override with #[sync_state(name = "…")]).

use serde::{Deserialize, Serialize};
use tauri_plugin_sync_state::SyncState;

#[derive(SyncState, Serialize, Deserialize, Clone, Default)]
struct AppState {
    count: i32,
}

You normally don't depend on this crate directly — it is re-exported by tauri-plugin-sync-state. See that crate for full documentation.

License

MIT — see LICENSE.