tauri-plugin-user-data 2.0.1

User Data API for Tauri aplications (Created for VasakOS)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use serde::de::DeserializeOwned;
use tauri::{plugin::PluginApi, AppHandle, Runtime};

pub fn init<R: Runtime, C: DeserializeOwned>(
  app: &AppHandle<R>,
  _api: PluginApi<R, C>,
) -> crate::Result<UserData<R>> {
  Ok(UserData(app.clone()))
}

/// Access to the user-data APIs.
pub struct UserData<R: Runtime>(AppHandle<R>);