mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-23 11:36:13 +02:00
15 lines
408 B
Rust
15 lines
408 B
Rust
use tauri::{plugin::TauriPlugin, Runtime};
|
|
|
|
#[cfg(target_os = "windows")]
|
|
#[path = "platform_impl/windows.rs"]
|
|
mod platform_impl;
|
|
|
|
pub(crate) type SingleInstanceCallback =
|
|
dyn FnMut(Vec<String>, String, Box<dyn FnOnce()>) + Send + 'static;
|
|
|
|
pub fn init<R: Runtime, F: FnMut(Vec<String>, String, Box<dyn FnOnce()>) + Send + 'static>(
|
|
f: F,
|
|
) -> TauriPlugin<R> {
|
|
platform_impl::init(Box::new(f))
|
|
}
|