hex/Cargo.toml
Dax Raad ecb228b8a0 feat(updater): one in-app updater on the Anomaly release service; drop Sparkle
Hex polls anoma.ly/release/hex/desktop/<channel>.json on every OS and decides
with the release protocol's client rules (the service's shared test vectors in
tests/fixtures/release-protocol): strictly newer unless revoked, the minimum
version before rollout, and a device-local rollout bucket that is never sent.
Direct installs (Linux and Windows with the installer's receipt, macOS a
replaceable Hex.app) download resumably, check size and SHA-256, then the OS
code signature (macOS app/update-requirement.txt: Developer ID 5NZ4Q7NXJ4,
anomaly.hex, notarized; Windows Authenticode from Anomaly's Artifact Signing
identity), and stage the update for Restart to update. macOS swaps the bundle
in with renamex_np(RENAME_SWAP) at restart or quit; a read-only location links
to the DMG. Package-managed installs show their manager's command; source and
test builds never check; DisableUpdates (macOS defaults, Windows policy key)
turns checks off.

Sparkle, its framework, Info.plist keys, appcast generation, and the ed25519
feeds are gone. release-app.sh prepare leaves Hex-<v>-macos-arm64.dmg and .zip
(root Hex.app). Macs on 2.3.1 get packaging/macos/legacy-appcast.xml: one
informational item linking to anoma.ly/hex.
2026-10-24 11:03:26 -04:00

116 lines
4.1 KiB
TOML

[package]
name = "voice-control"
version = "2.3.1"
edition = "2024"
default-run = "voice-control"
license = "MIT"
repository = "https://github.com/anomalyco/hex"
[[test]]
name = "keyboard_layout"
harness = false
[build-dependencies]
cc = "1"
[target.'cfg(windows)'.build-dependencies]
embed-resource = "3"
[features]
onnx-benchmark = ["dep:transcribe-rs"]
[profile.moonshine-lab]
inherits = "release"
debug-assertions = true
[dependencies]
clap = { version = "4.6.7", features = ["derive"] }
color-eyre = "0.6.5"
cpal = "0.18.2"
ctrlc = "3.5.2"
dirs = "7.0.0"
fs2 = "0.4.3"
getrandom = "0.4.3"
hound = "3.5.1"
libc = "0.2.189"
libloading = "0.9.0"
regex = "1.13.1"
rodio = { version = "0.22.2", default-features = false, features = ["playback", "mp3"] }
rubato = "5.0.1"
semver = "1.0.28"
serde = { version = "1.0.229", features = ["derive"] }
serde_json = "1.0.151"
sha2 = "0.11.0"
tracing = "0.1.44"
tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
transcribe-cpp = "=0.2.4"
transcribe-rs = { git = "https://github.com/cjpais/transcribe-rs", rev = "e37c66b6df43af51fde8dec34f98a07aaf09564c", features = ["onnx"], optional = true }
unicode-segmentation = "1.13.3"
url = "2.5.8"
[target.'cfg(target_os = "macos")'.dependencies]
arboard = { version = "3.6.1", default-features = false }
block2 = "0.6.2"
core-graphics-types = "0.1.3"
core-video = "0.4.3"
crossterm = "0.29.0"
metal = "0.29.0"
objc2 = "0.6.4"
objc2-app-kit = "0.3.2"
objc2-core-audio = "0.3.2"
objc2-core-audio-types = "0.3.2"
objc2-core-foundation = "0.3.2"
objc2-foundation = "0.3.2"
objc2-quartz-core = { version = "0.3.2", features = ["CALayer"] }
objc2-service-management = { version = "0.3.2", features = ["SMAppService"] }
ratatui = "0.30.2"
rmcp = { version = "3.5.1", default-features = false, features = ["server", "macros", "transport-io"] }
screencapturekit = { version = "=11.0.0", features = ["macos_15_0"] }
tokio = { version = "1.53.1", features = ["rt", "io-std"] }
unicode-normalization = "0.1.25"
[target.'cfg(target_os = "linux")'.dependencies]
ctrlc = { version = "3.5.2", features = ["termination"] }
gio = "0.18.4"
glib = "0.18.5"
transcribe-cpp = { version = "=0.2.4", features = ["vulkan"] }
x11-clipboard = "0.9.3"
x11rb = { version = "0.14.0", features = ["xtest"] }
# The desktop UI.
[target.'cfg(any(target_os = "linux", target_os = "macos", target_os = "windows"))'.dependencies]
rune = { git = "https://github.com/anomalyco/rune.git", rev = "b77c9ac42d4a6d872d6e3947d18245c1689675eb" }
rune-kit = { git = "https://github.com/anomalyco/rune.git", rev = "b77c9ac42d4a6d872d6e3947d18245c1689675eb" }
rune-theme-opencode = { git = "https://github.com/anomalyco/rune.git", rev = "b77c9ac42d4a6d872d6e3947d18245c1689675eb" }
[target.'cfg(any(target_os = "linux", target_os = "macos", target_os = "windows"))'.dev-dependencies]
png = "0.18"
[target.'cfg(target_os = "windows")'.dependencies]
arboard = { version = "3.6.1", default-features = false, features = ["image-data"] }
tray-icon = { version = "0.24.1", default-features = false }
winreg = "0.55.0"
windows-sys = { version = "0.61.2", features = [
"Win32_Foundation",
"Win32_Globalization",
"Win32_Graphics_Dwm",
"Win32_Graphics_Gdi",
"Win32_Security",
"Win32_Storage_FileSystem",
"Win32_System_Console",
"Win32_System_DataExchange",
"Win32_System_JobObjects",
"Win32_System_SystemInformation",
"Win32_System_Threading",
"Win32_UI_Input_KeyboardAndMouse",
"Win32_UI_Shell",
"Win32_UI_WindowsAndMessaging",
] }
windows = { version = "0.62.2", features = ["Media_Control", "Foundation", "Foundation_Collections", "Win32_Media_Audio", "Win32_System_Com", "Win32_System_Ole", "Win32_System_Variant", "Win32_UI_Accessibility", "Win32_UI_Shell", "Win32_UI_Shell_Common"] }
windows-future = "0.3.2"
# x64 Windows decodes on the GPU through Vulkan. ARM64 Windows stays CPU-only,
# as Handy ships it: ggml's ARM CPU backend needs clang-cl, and Vulkan drivers
# on Windows-on-ARM are not a dependable target yet.
[target.'cfg(all(target_os = "windows", target_arch = "x86_64"))'.dependencies]
transcribe-cpp = { version = "=0.2.4", features = ["vulkan"] }