This commit is contained in:
amrbashir
2022-05-01 13:16:13 +02:00
commit 02a59015f7
31 changed files with 4675 additions and 0 deletions
+11
View File
@@ -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))
}