tauri_swift_runtime/lib.rs
1mod desktop;
2mod macos;
3
4pub use desktop::{PluginApiExt, PluginHandleExt, PluginInvokeError};
5
6#[doc(hidden)]
7pub use swift_rs;
8
9/// Setups the binding that initializes a Swift plugin.
10#[macro_export]
11macro_rules! swift_plugin_binding {
12 ($fn_name: ident) => {
13 $crate::swift_rs::swift!(fn $fn_name() -> *const ::std::ffi::c_void);
14 }
15}