# tauri-plugin-sync-state-macros
Procedural derive macro for [`tauri-plugin-sync-state`](https://crates.io/crates/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 = "…")]`).
```rust
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](LICENSE).