tauri-plugin-persistence

Crates.iotauri-plugin-persistence
lib.rstauri-plugin-persistence
version0.2.1
created_at2025-04-18 18:18:02.396886+00
updated_at2025-05-17 18:47:47.906408+00
descriptionA wrapper plugin for several persistence backends, focused on managing complex project folders with less boilerplate.
homepagehttps://github.com/dax-dot-gay/tauri-plugin-persistence
repositoryhttps://github.com/dax-dot-gay/tauri-plugin-persistence
max_upload_size
id1639760
size266,089
Dax Harris (dax-dot-gay)

documentation

README

tauri-plugin-persistence

A wrapper plugin for several persistence backends, focused on managing complex project folders with less boilerplate.

Installation

# Install cargo dependency
cargo add tauri-plugin-persistence

# Install JS dependency
npm install tauri-plugin-persistence-api

Setup

The plugin must be initialized in Rust. A basic example follows:

pub fn run() {
    tauri::Builder::default()
        .plugin(tauri_plugin_persistence::init())
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}

Usage

The plugin's functions can be accessed in Rust from app.persistence(), or in the frontend (see the example).

Commit count: 28

cargo fmt