mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
15 lines
427 B
Rust
15 lines
427 B
Rust
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
|
|
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
|
|
|
fn main() {
|
|
tauri::Builder::default()
|
|
.invoke_handler(tauri::generate_handler![my_custom_command])
|
|
.run(tauri::generate_context!())
|
|
.expect("error while running tauri application");
|
|
}
|
|
|
|
#[tauri::command]
|
|
fn my_custom_command() {
|
|
println!("I was invoked from JS!");
|
|
}
|