tauri-swift-runtime 0.1.2

A runtime layer for executing Swift code in Tauri plugins on macOS and iOS
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod desktop;
mod macos;

pub use desktop::{PluginApiExt, PluginHandleExt, PluginInvokeError};

#[doc(hidden)]
pub use swift_rs;

/// Setups the binding that initializes a Swift plugin.
#[macro_export]
macro_rules! swift_plugin_binding {
  ($fn_name: ident) => {
    $crate::swift_rs::swift!(fn $fn_name() -> *const ::std::ffi::c_void);
  }
}