mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
Since the playground experiment (b7843594), fixed_window() returned default
options whenever the playground was on, so the Linux window tiled. The
window now uses Rune's App::float_on_open: it maps at 980x760 with its
minimum equal to its maximum, which niri, sway, Hyprland and i3 float, then
relaxes to the 860x560 minimum with no maximum so the user can resize it.
Rune pinned at 100b7d9.
162 lines
6.7 KiB
TOML
162 lines
6.7 KiB
TOML
[package]
|
|
name = "hex"
|
|
version = "0.0.0"
|
|
edition = "2024"
|
|
default-run = "hex"
|
|
license = "MIT"
|
|
repository = "https://github.com/anomalyco/hex"
|
|
|
|
# Crates imported from Scrawl live under `crates/`. Plain `cargo build` and
|
|
# `cargo test` still select only Hex; pass `--workspace` or `-p` for the others.
|
|
# `crates/capture` and `crates/capture-core` are excluded so `--workspace`
|
|
# never builds them: they compile only as the macOS and Linux dependencies
|
|
# of the `capture` experiment, and `-p scrawl-capture` / `-p capture-core` test and lint
|
|
# them. The root package is a member without being listed; listing "." would
|
|
# defeat `exclude`.
|
|
[workspace]
|
|
members = ["crates/router"]
|
|
exclude = ["crates/capture", "crates/capture-core"]
|
|
|
|
[[test]]
|
|
name = "keyboard_layout"
|
|
harness = false
|
|
|
|
[build-dependencies]
|
|
cc = "1"
|
|
|
|
[target.'cfg(windows)'.build-dependencies]
|
|
embed-resource = "3"
|
|
|
|
[features]
|
|
onnx-benchmark = ["dep:transcribe-rs"]
|
|
|
|
# Shipped executables carry no symbol table (about 11 MB on Linux). Panic
|
|
# backtraces lose function names; debug builds keep them.
|
|
[profile.release]
|
|
strip = true
|
|
|
|
# transcribe.cpp 0.4.1 plus one ggml patch that builds only the Vulkan
|
|
# shaders Hex's models use (see `CMAKE_ARGS` in .cargo/config.toml) and
|
|
# Parakeet's vocabulary rescoring (branch hex/parakeet-vocabulary). Drop this
|
|
# once a transcribe.cpp release carries both.
|
|
[patch.crates-io]
|
|
transcribe-cpp = { git = "https://github.com/anomalyco/transcribe.cpp", rev = "9badd2a27f660c38e76c379713b9d6c63d45eaaa" }
|
|
transcribe-cpp-sys = { git = "https://github.com/anomalyco/transcribe.cpp", rev = "9badd2a27f660c38e76c379713b9d6c63d45eaaa" }
|
|
|
|
[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"
|
|
oxc_allocator = "0.156.0"
|
|
oxc_ast = "0.156.0"
|
|
oxc_ast_visit = "0.156.0"
|
|
oxc_parser = "0.156.0"
|
|
oxc_span = "0.156.0"
|
|
regex = "1.13.1"
|
|
rquickjs = { version = "0.14.0", default-features = false, features = ["std", "loader"] }
|
|
rodio = { version = "0.23.0", default-features = false, features = ["playback", "mp3"] }
|
|
rubato = "5.0.1"
|
|
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.4.1"
|
|
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"
|
|
crossterm = "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"] }
|
|
# Smart Turn: loads the ONNX Runtime dylib Moonshine already ships.
|
|
ort = { version = "=2.0.0-rc.12", default-features = false, features = ["load-dynamic", "api-23"] }
|
|
procwatch = { git = "https://github.com/anomalyco/rune.git", rev = "100b7d93a442b7758f426dd0f63e2dd9cd72aff4" }
|
|
ratatui = "0.30.2"
|
|
realfft = "3.5.0"
|
|
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"] }
|
|
ed25519-dalek = { version = "2.2.0", default-features = false, features = ["std"] }
|
|
futures-util = { version = "0.3.34", default-features = false }
|
|
tokio = { version = "1.54.1", features = ["rt", "rt-multi-thread", "time"] }
|
|
transcribe-cpp = { version = "=0.4.1", features = ["vulkan"] }
|
|
wayland-client = "0.31.15"
|
|
x11-clipboard = "0.9.3"
|
|
x11rb = { version = "0.14.0", features = ["xtest"] }
|
|
zbus = { version = "6.1.0", default-features = false, features = ["tokio", "proxy"] }
|
|
|
|
# The `capture` experiment (Scrawl's capture engine), compiled into every macOS
|
|
# and Linux build and dormant until `hex experiments enable capture` and
|
|
# `capture.enabled`. Windows has no host for it yet.
|
|
[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dependencies]
|
|
anyhow = "1.0.104"
|
|
# The capture capsule's motion-lint trace.
|
|
rune-motion = { git = "https://github.com/anomalyco/rune.git", rev = "100b7d93a442b7758f426dd0f63e2dd9cd72aff4" }
|
|
scrawl-capture = { path = "crates/capture", default-features = false, features = ["screen", "helper"] }
|
|
|
|
# The desktop UI.
|
|
[target.'cfg(any(target_os = "linux", target_os = "macos", target_os = "windows"))'.dependencies]
|
|
pollster = "1.0.1"
|
|
rune = { git = "https://github.com/anomalyco/rune.git", rev = "100b7d93a442b7758f426dd0f63e2dd9cd72aff4", features = ["native-file-dialog"] }
|
|
rune-kit = { git = "https://github.com/anomalyco/rune.git", rev = "100b7d93a442b7758f426dd0f63e2dd9cd72aff4" }
|
|
rune-theme-opencode = { git = "https://github.com/anomalyco/rune.git", rev = "100b7d93a442b7758f426dd0f63e2dd9cd72aff4" }
|
|
# The welcome hero's own GPU pass (`rune_ui::hero`); Rune's version.
|
|
wgpu = { version = "30", default-features = false, features = ["std", "parking_lot", "metal", "wgsl"] }
|
|
|
|
[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"] }
|
|
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_Memory",
|
|
"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"] }
|
|
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.4.1", features = ["vulkan"] }
|