Skip to content

Commit 00a12c8

Browse files
committed
perf(cortex-gui): optimize Tauri app with async patterns and reduced dependencies
- Remove blocking reqwest feature in favor of async-only HTTP client - Remove unused direct dependencies: wry and plist (provided by tauri) - Remove blocking HttpTransport in favor of AsyncHttpTransport - Update Cargo.lock with reduced dependencies Key optimizations: - Prevents sync blocking in async Tauri command context - Smaller binary size due to fewer dependencies - Cleaner async/await patterns for HTTP communication The frontend already uses VirtualList for large lists (FileExplorer, SearchSidebar, MessageList) which is optimal for SolidJS.
1 parent 53f158b commit 00a12c8

4 files changed

Lines changed: 3151 additions & 72 deletions

File tree

Cargo.lock

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cortex-gui/src-tauri/Cargo.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ dirs = "5"
5959
parking_lot = "0.12"
6060
sysinfo = { version = "0.32", default-features = false, features = ["system"] }
6161
chrono = { version = "0.4", features = ["serde"] }
62-
reqwest = { version = "0.12", features = ["json", "blocking", "stream"] }
62+
# Async-only HTTP client - blocking feature removed to prevent sync blocking in async context
63+
reqwest = { version = "0.12", features = ["json", "stream"] }
6364
glob = "0.3"
6465
walkdir = "2"
6566
regex = "1"
@@ -102,10 +103,7 @@ libc = "0.2"
102103
interprocess = { version = "2.2", features = ["tokio"] }
103104
enigo = "0.3"
104105
image = "0.24"
105-
plist = "1.6"
106-
107-
# Webview
108-
wry = "0.53"
106+
# Note: plist and wry are provided by tauri and don't need direct dependencies
109107

110108
# Security - credential encryption
111109
keyring = { version = "3", default-features = false, features = ["windows-native", "apple-native", "linux-native"] }

0 commit comments

Comments
 (0)