chore: update documentation

This commit is contained in:
Lucas Nogueira
2026-09-22 11:30:47 -03:00
parent d869c162a7
commit a87a3c7d44
104 changed files with 4875 additions and 222 deletions
+8
View File
@@ -163,6 +163,14 @@ fn save_scopes(scope: &tauri::fs::Scope, app_dir: &Path, scope_state_path: &Path
});
}
/// Initializes the plugin.
///
/// On setup, this restores the filesystem scope, and the `asset://` protocol scope when the
/// `protocol-asset` feature is enabled, from the state persisted during a previous run, then
/// listens for further scope changes to persist them again. Scopes are stored under the app's
/// data directory; nothing is restored or persisted if that directory cannot be resolved. The
/// `fs` plugin must be registered before this plugin, otherwise the filesystem scope is not
/// restored or persisted (a warning is printed in debug builds).
pub fn init<R: Runtime>() -> TauriPlugin<R> {
Builder::new("persisted-scope")
.setup(|app, _api| {