This commit is contained in:
2026-08-01 09:36:24 +08:00
parent 30e441dfc9
commit bdd11355c2
6 changed files with 285 additions and 1 deletions
+4 -1
View File
@@ -1,12 +1,14 @@
mod cursor;
mod db;
mod friends;
mod keypair;
mod ufa;
mod windowing;
async fn launch_app(app: &tauri::App) -> Result<(), Box<dyn std::error::Error>> {
let handle = app.handle();
db::init(handle).await?;
keypair::init(handle).await?;
ufa::init();
cursor::init(handle);
windowing::init(handle);
@@ -21,7 +23,8 @@ pub fn run() {
friends::create_friend,
friends::list_friends,
friends::get_friend,
friends::delete_friend
friends::delete_friend,
keypair::get_public_key,
])
.events(tauri_specta::collect_events![friends::FriendsChanged]);