11 lines
533 B
Rust
11 lines
533 B
Rust
// App command manifest: every #[tauri::command] gets an `allow-<name>` permission, and a command no capability lists
|
|
// is denied. The list lives in src/commands_list.rs so tests/security.rs can compare it with the capability files.
|
|
include!("src/commands_list.rs");
|
|
|
|
fn main() {
|
|
tauri_build::try_build(
|
|
tauri_build::Attributes::new()
|
|
.app_manifest(tauri_build::AppManifest::new().commands(Box::leak([COMMANDS, CARD_COMMANDS].concat().into_boxed_slice()))),
|
|
)
|
|
.expect("tauri build script failed");
|
|
}
|