You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tauri-plugins-workspace/plugins/process/src/lib.rs

18 lines
382 B

use tauri::{
plugin::{Builder, TauriPlugin},
Runtime,
};
mod commands;
pub fn init<R: Runtime>() -> TauriPlugin<R> {
Builder::new("process")
.invoke_handler(tauri::generate_handler![
#[cfg(feature = "allow-exit")]
commands::exit,
#[cfg(feature = "allow-restart")]
commands::restart
])
.build()
}