mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
init
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
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) + Send + 'static;
|
||||
|
||||
pub fn init<R: Runtime, F: FnMut(Vec<String>, String) + Send + 'static>(f: F) -> TauriPlugin<R> {
|
||||
platform_impl::init(Box::new(f))
|
||||
}
|
||||
Reference in New Issue
Block a user