let mut store = StoreBuilder::new(app.handle(), "path/to/store.bin").build();
store.insert("a", json!("b")) // note that values must be serd_json::Value to be compatible with JS
})
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
```
As you may have noticed, the Store crated above isn't accessible to the frontend. To interoperate with stores created by JS use the exported `with_store` method:
```rust
use tauri_plugin_store::with_store;
let stores = app.state::<StoreCollection<R>>();
let path = PathBuf::from("path/to/the/storefile");