claude-usage-widget/src-tauri/Cargo.toml
megaproxy 79fc144235 Add system tray icon (Show/Hide/Refresh/Quit; left-click restores window)
Solves the 'lost window' problem — if the widget gets dragged off-screen
or hidden behind other apps, users can recover it via the tray.

Enables tauri 'tray-icon' feature; tray runs entirely Rust-side so no
new JS capabilities needed.
2026-05-09 14:47:03 +01:00

54 lines
1.2 KiB
TOML

[package]
name = "claude-usage-widget"
version = "0.1.0"
description = "Always-on-top Windows widget visualizing local Claude Code usage"
authors = ["megaproxy"]
edition = "2021"
rust-version = "1.77"
[lib]
name = "claude_usage_widget_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2", features = [] }
[dependencies]
tauri = { version = "2", features = ["tray-icon"] }
tauri-plugin-autostart = "2"
tauri-plugin-store = "2"
tauri-plugin-dialog = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
chrono = { version = "0.4", features = ["serde"] }
notify = "6"
notify-debouncer-full = "0.3"
walkdir = "2"
anyhow = "1"
thiserror = "1"
tokio = { version = "1", features = ["full"] }
dirs = "5"
once_cell = "1"
parking_lot = "0.12"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
portable-pty = "0.8"
regex = "1"
[target.'cfg(windows)'.dependencies]
windows = { version = "0.58", features = ["Win32_System_Console"] }
[features]
# Default: production binary (no console window on Windows)
default = ["custom-protocol"]
custom-protocol = ["tauri/custom-protocol"]
[profile.release]
panic = "abort"
codegen-units = 1
lto = true
opt-level = "s"
strip = true