Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
parkpow
GitHub Repository: parkpow/deep-license-plate-recognition
Path: blob/master/gate-controller/src-tauri/src/lib.rs
1072 views
1
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
2
#[tauri::command]
3
fn greet(name: &str) -> String {
4
format!("Hello, {}! You've been greeted from Rust!", name)
5
}
6
7
#[cfg_attr(mobile, tauri::mobile_entry_point)]
8
pub fn run() {
9
tauri::Builder::default()
10
.plugin(tauri_plugin_opener::init())
11
.invoke_handler(tauri::generate_handler![greet])
12
.run(tauri::generate_context!())
13
.expect("error while running tauri application");
14
}
15
16