Moved from electrobun to tauri+cef
This commit is contained in:
parent
0903f96ba3
commit
8a12ca7234
114 changed files with 822 additions and 513 deletions
14
apps/tauri/src-tauri/src/lib.rs
Normal file
14
apps/tauri/src-tauri/src/lib.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
|
||||
#[tauri::command]
|
||||
fn greet(name: &str) -> String {
|
||||
format!("Hello, {}! You've been greeted from Rust!", name)
|
||||
}
|
||||
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_opener::init())
|
||||
.invoke_handler(tauri::generate_handler![greet])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
}
|
||||
Loading…
Reference in a new issue