| // Copyright 2019-2024 Tauri Programme within The Commons Conservancy | |
| // SPDX-License-Identifier: Apache-2.0 | |
| // SPDX-License-Identifier: MIT | |
| fn ping() { | |
| println!("ping: {:?}", std::time::Instant::now()); | |
| } | |
| fn main() { | |
| tauri::Builder::default() | |
| .invoke_handler(tauri::generate_handler![ping]) | |
| .run(tauri::generate_context!( | |
| "../../examples/isolation/tauri.conf.json" | |
| )) | |
| .expect("error while running tauri application"); | |
| } | |