Files
radicle-desktop/src-tauri/src/lib.rs
T
Rūdolfs Ošiņš 52c491d2ea Remember previous window size and position
Also sets minimum window width and height.
2024-08-20 14:56:35 +02:00

15 lines
451 B
Rust

#[tauri::command]
fn greet(name: &str) -> String {
format!("Hello, {}!", name)
}
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.plugin(tauri_plugin_shell::init())
.plugin(tauri_plugin_window_state::Builder::default().build())
.invoke_handler(tauri::generate_handler![greet])
.run(tauri::generate_context!())
.expect("error while running tauri application");
}