19 lines
495 B
Rust
19 lines
495 B
Rust
|
|
pub mod commands;
|
||
|
|
pub mod db;
|
||
|
|
pub mod state;
|
||
|
|
|
||
|
|
use commands::project::{create_project, get_project, list_projects};
|
||
|
|
|
||
|
|
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||
|
|
pub fn run() {
|
||
|
|
tauri::Builder::default()
|
||
|
|
.plugin(tauri_plugin_opener::init())
|
||
|
|
.invoke_handler(tauri::generate_handler![
|
||
|
|
create_project,
|
||
|
|
get_project,
|
||
|
|
list_projects,
|
||
|
|
])
|
||
|
|
.run(tauri::generate_context!())
|
||
|
|
.expect("error while running tauri application");
|
||
|
|
}
|