-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
106 lines (99 loc) · 4.87 KB
/
Copy pathCargo.toml
File metadata and controls
106 lines (99 loc) · 4.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[workspace]
resolver = "2"
members = ["core/rust-lib", "win/src-tauri", "macos/src-tauri", "linux/src-tauri"]
[workspace.package]
version = "0.96.0"
edition = "2021"
authors = ["Martin Pfeffer <martinpaush@gmail.com>"]
license = "MIT"
repository = "https://github.com/pepperonas/inspector-rust"
[workspace.dependencies]
# Tauri core
tauri = { version = "2", features = ["tray-icon", "image-png", "macos-private-api", "protocol-asset"] }
tauri-build = { version = "2", features = [] }
tauri-plugin-opener = "2"
tauri-plugin-clipboard-manager = "2"
tauri-plugin-autostart = "2"
tauri-plugin-global-shortcut = "2"
tauri-plugin-dialog = "2"
tauri-plugin-single-instance = "2"
# Data / crypto
serde = { version = "1", features = ["derive"] }
serde_json = "1"
chrono = { version = "0.4", features = ["serde"] }
sha2 = "0.10"
rusqlite = { version = "0.32", features = ["bundled"] }
base64 = "0.22"
# At-rest content encryption (entries / snippets / notes bodies). AES-256-GCM
# is the modern AEAD with hardware acceleration on both AArch64 and x86-64.
aes-gcm = "0.10"
rand = "0.8"
# Argon2id password-based KDF for encrypted backup files. Memory-hard,
# resistant to GPU/ASIC attacks; recommended by OWASP for password hashing.
argon2 = "0.5"
# OS keychain-backed key storage. macOS Keychain / Windows Credential
# Manager / Linux Secret Service — single API, transparent fallback.
keyring = "3"
# OS integration
clipboard-rs = "0.2"
enigo = "0.3"
dirs = "5"
# File-system watcher for the timesheet Claude-Code detector — watches
# ~/.claude/projects/**/*.jsonl for appends (active Claude usage). Cross-platform
# (FSEvents/inotify/ReadDirectoryChangesW). default-features keeps the debounced
# recommended backend.
notify = "6"
# Synchronous WebSocket (no async runtime) for the timesheet browser bridge —
# a loopback-only (127.0.0.1), token-authenticated server the browser extension
# reports the active tab to. One blocking accept loop + per-connection threads.
tungstenite = "0.21"
# Minimal blocking HTTP/1.1 client for the LAN-only Philips Hue Bridge API
# (`hue` command). default-features=false drops TLS/gzip — the Hue local API
# is plain HTTP on port 80, and bridge discovery is local SSDP (UDP), so no
# cloud calls and no TLS stack are pulled in (keeps the "local-first" promise).
ureq = { version = "2", default-features = false }
# Image decode/encode for the recolor / cutout features. Output is
# always PNG (alpha-preserving), but inputs can be any of the formats
# users routinely have on disk: JPG/WEBP/GIF/BMP from screenshots,
# downloads, or cameras. HDR/EXR/etc. left out — irrelevant for
# clipboard / file-cutout workflows.
image = { version = "0.25", default-features = false, features = [
"png", "jpeg", "webp", "gif", "bmp",
] }
# ONNX Runtime FFI for the ML-based subject cutout. We tried tract
# (pure Rust) first but it can't run U2Net's Resize ops cleanly —
# pytorch_half_pixel isn't supported, and naive substitution produces
# the wrong output dimensions. ort statically links the runtime via
# the `download-binaries` feature, so users don't need anything
# pre-installed. ndarray is used to build the input tensor.
ort = { version = "2.0.0-rc.12", features = ["ndarray"] }
ndarray = "0.17"
# Pure-Rust PNG optimiser — used by the `optim` power command. Lossless,
# zopfli-style deflate + filter selection. Ships statically; no external
# CLI tool required.
oxipng = { version = "9", default-features = false, features = ["zopfli"] }
# Cross-platform process inspection — drives the `kill` power command's
# live picker plus the `stats` command (CPU/mem/disk/net/temps). `disk`,
# `component` (temperatures) and `network` (throughput) are needed by
# `system_stats`; `system` covers CPU/memory/processes.
sysinfo = { version = "0.32", default-features = false, features = ["system", "disk", "component", "network"] }
# Cross-platform battery + power-draw info for the `stats` command (IOKit on
# macOS, WMI on Windows, sysfs on Linux). `energy_rate` is the live power in W.
# Imported under the `battery` name (its lib name) for clean call sites.
battery = { package = "starship-battery", version = "0.10" }
# Observability / errors / concurrency
anyhow = "1"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
tracing-appender = "0.2"
parking_lot = "0.12"
# Release profile — favours determinism over compile speed so two `cargo
# build --release` runs of the same source produce as close to byte-identical
# binaries as Rust currently allows. This matters for ad-hoc-signed macOS
# builds: a stable binary → stable cdhash → the user's TCC Accessibility
# grant survives across rebuilds. (See scripts/install-macos.sh + macos/README.md.)
[profile.release]
codegen-units = 1 # single codegen unit removes parallelism non-determinism
lto = true # full LTO; output is independent of compilation order
strip = "debuginfo" # debug info contains paths and timestamps
opt-level = 3