pytauri_core/plugins/persisted_scope/
mod.rs

1use pyo3::prelude::*;
2use tauri_plugin_persisted_scope::{self as plugin};
3
4use crate::{ext_mod::plugin::Plugin, tauri_runtime::Runtime};
5
6/// See also: [tauri_plugin_persisted_scope::init]
7#[pyfunction]
8pub fn init() -> Plugin {
9    Plugin::new(Box::new(|| Box::new(plugin::init::<Runtime>())))
10}
11
12/// See also: [tauri_plugin_persisted_scope]
13#[pymodule(submodule, gil_used = false)]
14pub mod persisted_scope {
15    #[pymodule_export]
16    pub use super::init;
17}