1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! The widget API plugin for `sys` in `@deskulpt-test/apis`.

use tauri::{
    generate_handler,
    plugin::{Builder, TauriPlugin},
    Runtime,
};

mod apis;

/// Build the `sys` plugin for `@deskulpt-test/apis`.
///
/// The registered APIs can be invoked as `plugin:apis-sys|<api_name>``.
pub(crate) fn init<R: Runtime>() -> TauriPlugin<R> {
    Builder::new("apis-sys")
        .invoke_handler(generate_handler![apis::get_system_info])
        .build()
}