27 lines
724 B
Rust
27 lines
724 B
Rust
use std::sync::{Arc, Mutex};
|
|
|
|
use store::Store;
|
|
|
|
mod api;
|
|
pub mod store;
|
|
mod types;
|
|
|
|
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
|
pub fn run() {
|
|
tauri::Builder::default()
|
|
.plugin(tauri_plugin_opener::init())
|
|
.manage(Arc::new(Mutex::new(Store::new())))
|
|
.invoke_handler(tauri::generate_handler![
|
|
api::note_child_add,
|
|
api::note_child_move,
|
|
api::note_child_remove,
|
|
api::note_children_set,
|
|
api::note_create,
|
|
api::note_delete,
|
|
api::note_get,
|
|
api::note_text_set,
|
|
api::notes_clear,
|
|
])
|
|
.run(tauri::generate_context!())
|
|
.expect("error while running tauri application");
|
|
}
|