paths::quiet_command sets CREATE_NO_WINDOW (0x08000000) on Windows so short-lived child processes (wsl.exe -l -q, where claude, wsl.exe -d X bash -lc 'command -v claude') don't briefly allocate a real console window and flash on click. Used by both paths.rs and cli_usage.rs.
54 lines
1.2 KiB
TOML
54 lines
1.2 KiB
TOML
[package]
|
|
name = "claude-usage-widget"
|
|
version = "0.1.2"
|
|
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
|