From bbd8a12390727a206b801deccb18b0903fb1d3fa Mon Sep 17 00:00:00 2001 From: Tunglies <77394545+Tunglies@users.noreply.github.com> Date: Mon, 14 Jul 2025 04:07:44 +0800 Subject: [PATCH] fix: update kode-bridge dependency to version 0.1.3 and change source to crates.io --- src-tauri/Cargo.lock | 5 +++-- src-tauri/Cargo.toml | 2 +- src-tauri/src/ipc/general.rs | 6 +----- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 788246f6..ad43d12f 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -3730,8 +3730,9 @@ dependencies = [ [[package]] name = "kode-bridge" -version = "0.1.2" -source = "git+https://github.com/KodeBarinn/kode-bridge?branch=dev#f061e7175570e7544d27248d2fea173c7ad3302f" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b98b8ee7eeeef6fa12b835cb29f60278e647ca7b8e814af0313f577fbe8d5c2" dependencies = [ "interprocess", "serde", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 40cd3797..d716349d 100755 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -78,7 +78,7 @@ hmac = "0.12.1" sha2 = "0.10.9" hex = "0.4.3" scopeguard = "1.2.0" -kode-bridge = { git = "https://github.com/KodeBarinn/kode-bridge", branch = "dev" } +kode-bridge = "0.1.3" dashmap = "6.1.0" tauri-plugin-notification = "2.3.0" diff --git a/src-tauri/src/ipc/general.rs b/src-tauri/src/ipc/general.rs index 6fb47425..37006b3a 100644 --- a/src-tauri/src/ipc/general.rs +++ b/src-tauri/src/ipc/general.rs @@ -25,10 +25,6 @@ impl IpcManager { let instance = IpcManager { ipc_path: ipc_path.to_string(), }; - println!( - "IpcManager initialized with IPC path: {}", - instance.ipc_path - ); logging!( info, Type::Ipc, @@ -48,7 +44,7 @@ impl IpcManager { path: &str, body: Option<&serde_json::Value>, ) -> AnyResult { - let client = IpcHttpClient::new(&self.ipc_path); + let client = IpcHttpClient::new(&self.ipc_path)?; client.request(method, path, body).await } }