kanamaru-build 0.1.1

the build script required for kanamaru
Documentation
use serde::Deserialize;
use tauri_plugin::Builder;

/// Command Scope
#[derive(Debug, schemars::JsonSchema, Deserialize)]
pub struct KanaScope {
    pub pattern: String,
}

pub const COMMANDS: &[&str] = &["unary", "client_streaming", "server_streaming", "duplex"];

/// Get the [`tauri_plugin::Builder`] from this plugin.
pub fn get_tauri_plugin_builder() -> Builder<'static> {
    Builder::new(COMMANDS).global_scope_schema(schemars::schema_for!(KanaScope))
}

/// Build the [`tauri_plugin::Builder`] directly
pub fn build() {
    get_tauri_plugin_builder().build();
}