mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
* linux: round a Wayland window's bottom corners Bump Rune to 431469b999268a56ef7fbc60ed55975753ee22df. Under GNOME Wayland winit draws the client-side frame, whose headerbar rounds the top corners and whose shadow cuts a 10-point rounded window, but the content's surface stayed square: the bottom corners showed past the frame's border and the border's straight bands crossed the shadow's cut-out (#1779). Rune (#1188) rounds the content's bottom corners with the frame while the window floats, and keeps them square when it is maximized, tiled or fullscreen; a compositor that draws the decorations itself (KDE, sway, Hyprland) keeps the surface it had. Patch sctk-adwaita from the same rev as winit, since Rune's winit calls the vendored frame's `AdwaitaFrame::content_corner_radius`. The rev also carries Rune's macOS/iOS/Linux build fix after the crate extractions (#1203), and its wheel fix (#1214): a wheel over a scroll bar now scrolls the viewport it follows, so Hex's wheel-over-the-right-edge tests keep their positions. The bump brings the type-erased `window::Host` and window/ reorganisation, the rune-core/rune-gpu/rune-image/rune-spell extraction, then rune-text, rune-media and rune-edit, the non-generic `RuntimeCore`, windows-sys 0.61, deep Taffy stack segments, one flatten and one detached-table prune, the new wheel distance and chaining, and text, markdown and scroll fixes. No Hex call sites changed. Goldens are refreshed for Rune's visuals: the OpenCode icon catalog's marks (terminal, search, keyboard, globe) in every pane and overlay, and the shortcut-mode bars from Rune's border-over-fill change. cargo check --all-targets, cargo test (2811 passed), cargo clippy --all-targets --all-features, cargo fmt --check, code-shape.py, check-nix-git-pins.py and its tests, nix build of the cargoDeps, and cargo test rune_ui all pass. * history: read Dictation stats from the window's settings The pane closed its stats dialog and reloaded the rollup from the process-wide labs switch. A test that applies another LabsSettings (as several do) flips that mirror under it, so the dialog vanished mid-test. Take the window's own `settings.labs.history_stats` instead, as the Stats button and the dialog already do. * nix: vendor Rune's fonts for rune-text, and run the suite serially Rune's crates/rune-text includes crates/rune/assets/Inter-*.ttf by a path relative to the workspace root; a vendored crate sits in git/ beside rune-0.0.1, so link git/rune to it for the include. The package check also runs plain cargo test, which shares Hex's process-global lab switches and model-download state. nextest isolates each test everywhere else, so run this one test at a time. * goldens: refresh the meeting capsules on Rune's icons Dev's capsule layout moved the time and close button above the title; with Rune's icon catalog the copy-agent-prompt mark is the boxed terminal. Only those four renders change. * nix: run the package check one test at a time the hook's way `preCheck` runs before cargoCheckHook, which then sets RUST_TEST_THREADS=$NIX_BUILD_CORES, so the export there was a no-op and the suite still raced on its process-global state. Set dontUseCargoParallelTests instead, and take the rune vendor directory's name from its cargoGitDependencies key, failing loudly if its assets are missing. Drop the link once Rune moves the fonts into rune-text.
230 lines
10 KiB
TOML
230 lines
10 KiB
TOML
[package]
|
|
name = "hex"
|
|
version = "3.4.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/console", "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"]
|
|
|
|
# Full debug info made each dev/test build ~19 GB per worktree. Line tables keep
|
|
# function names and file:line in backtraces; dependencies carry none.
|
|
[profile.dev]
|
|
debug = "line-tables-only"
|
|
|
|
[profile.dev.package."*"]
|
|
debug = false
|
|
|
|
# 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),
|
|
# Parakeet's vocabulary rescoring (branches hex/parakeet-vocabulary and
|
|
# hex/vocabulary-sounds-like), and a Metal residency heartbeat that sleeps once
|
|
# its keep-alive runs out (branch hex/metal-idle-residency). Drop this once a
|
|
# transcribe.cpp release carries them.
|
|
[patch.crates-io]
|
|
transcribe-cpp = { git = "https://github.com/anomalyco/transcribe.cpp", rev = "bcb639faa4c74a2300ba19e30360cb2355b1663a" }
|
|
transcribe-cpp-sys = { git = "https://github.com/anomalyco/transcribe.cpp", rev = "bcb639faa4c74a2300ba19e30360cb2355b1663a" }
|
|
# The crates Rune patches in its own workspace (Rune's README, "Depending on
|
|
# Rune"): a dependency's `[patch]` never reaches the workspace that depends on
|
|
# it, and without these Hex builds against stock winit, sctk-adwaita,
|
|
# parley_engine, wgpu-hal, accesskit_windows and accesskit_macos. Patch winit
|
|
# and sctk-adwaita together: Rune's winit calls the vendored frame's
|
|
# `AdwaitaFrame::content_corner_radius`. Bump the rev with the rune pin above.
|
|
winit = { git = "https://github.com/anomalyco/rune.git", rev = "431469b999268a56ef7fbc60ed55975753ee22df" }
|
|
sctk-adwaita = { git = "https://github.com/anomalyco/rune.git", rev = "431469b999268a56ef7fbc60ed55975753ee22df" }
|
|
parley_engine = { git = "https://github.com/anomalyco/rune.git", rev = "431469b999268a56ef7fbc60ed55975753ee22df" }
|
|
wgpu-hal = { git = "https://github.com/anomalyco/rune.git", rev = "431469b999268a56ef7fbc60ed55975753ee22df" }
|
|
accesskit_windows = { git = "https://github.com/anomalyco/rune.git", rev = "431469b999268a56ef7fbc60ed55975753ee22df" }
|
|
accesskit_macos = { git = "https://github.com/anomalyco/rune.git", rev = "431469b999268a56ef7fbc60ed55975753ee22df" }
|
|
|
|
[dependencies]
|
|
clap = { version = "4.6.7", features = ["derive"] }
|
|
clap_complete = { version = "4.6.11", default-features = false }
|
|
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"
|
|
oxc_allocator = "0.156.0"
|
|
oxc_ast = "0.156.0"
|
|
oxc_ast_visit = "0.156.0"
|
|
oxc_parser = "0.156.0"
|
|
opuscule = "0.2.2"
|
|
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"
|
|
same-file = "1.0.6"
|
|
serde = { version = "1.0.229", features = ["derive"] }
|
|
serde_json = "1.0.151"
|
|
serde_path_to_error = "0.1"
|
|
sha2 = "0.11.0"
|
|
# `hex transcribe`'s media reader. Opus decodes through `opuscule`.
|
|
symphonia = { version = "0.5.5", default-features = false, features = ["wav", "aiff", "caf", "mp3", "flac", "ogg", "vorbis", "mkv", "isomp4", "aac", "alac", "pcm"] }
|
|
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-normalization = "0.1.25"
|
|
unicode-segmentation = "1.13.3"
|
|
url = "2.5.8"
|
|
# Hex's HTTPS (`net`): model downloads, update checks, and transformation
|
|
# scripts' `fetch`, over the platform's TLS and trusted roots.
|
|
# `native-tls`, not `native-tls-no-default`: ureq 3.4 checks the former's
|
|
# name and panics on any https request without it.
|
|
ureq = { version = "3.4.2", default-features = false, features = ["native-tls"] }
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
capture-core = { path = "crates/capture-core" }
|
|
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"] }
|
|
ratatui = "0.30.2"
|
|
screencapturekit = { version = "=11.0.0", features = ["macos_15_0"] }
|
|
|
|
[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, features = ["alloc"] }
|
|
tokio = { version = "1.54.1", features = ["rt", "rt-multi-thread", "time"] }
|
|
transcribe-cpp = { version = "=0.4.1", features = ["vulkan"] }
|
|
wayland-backend = "0.3.17"
|
|
wayland-client = "0.31.15"
|
|
wayland-protocols = { version = "0.32.13", features = ["client", "staging", "unstable"] }
|
|
wayland-protocols-wlr = { version = "0.3.12", features = ["client"] }
|
|
wayland-scanner = "0.31.11"
|
|
x11-clipboard = "0.9.3"
|
|
x11rb = { version = "0.14.0", features = ["xkb", "xtest", "randr"] }
|
|
# Wayland paste reads the compositor's keymap to send the paste chord on the
|
|
# key each layout puts the letter on (`linux/remote_desktop/keymap.rs`). Rune
|
|
# already links libxkbcommon on Linux, so this adds no crate to Cargo.lock and
|
|
# no library to the link; the `wayland` feature's memmap path is unused.
|
|
xkbcommon = { version = "=0.9.0", default-features = false }
|
|
zbus = { version = "6.1.0", default-features = false, features = ["tokio", "proxy"] }
|
|
|
|
# The desktop UI, and Annotate (Scrawl's capture engine), compiled into
|
|
# every desktop build (`capture.enabled`).
|
|
[target.'cfg(any(target_os = "linux", target_os = "macos", target_os = "windows"))'.dependencies]
|
|
# `hex mcp`.
|
|
rmcp = { version = "3.5.1", default-features = false, features = ["server", "macros", "transport-io"] }
|
|
tokio = { version = "1.53.1", features = ["rt", "io-std"] }
|
|
anyhow = "1.0.104"
|
|
# The capture capsule's motion-lint trace.
|
|
rune-motion = { git = "https://github.com/anomalyco/rune.git", rev = "431469b999268a56ef7fbc60ed55975753ee22df" }
|
|
scrawl-capture = { path = "crates/capture", default-features = false, features = ["screen", "helper"] }
|
|
pollster = "1.0.1"
|
|
# Screenshot PNGs and the screenshot editor's export.
|
|
png = "0.18"
|
|
# The local API's `/profile/vitals`; it reports nothing off macOS.
|
|
procwatch = { git = "https://github.com/anomalyco/rune.git", rev = "431469b999268a56ef7fbc60ed55975753ee22df" }
|
|
rune = { git = "https://github.com/anomalyco/rune.git", rev = "431469b999268a56ef7fbc60ed55975753ee22df", features = ["native-file-dialog", "macos-background-cursor"] }
|
|
rune-kit = { git = "https://github.com/anomalyco/rune.git", rev = "431469b999268a56ef7fbc60ed55975753ee22df" }
|
|
rune-theme-opencode = { git = "https://github.com/anomalyco/rune.git", rev = "431469b999268a56ef7fbc60ed55975753ee22df" }
|
|
# 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(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_Networking_WinHttp",
|
|
"Win32_Networking_WinSock",
|
|
"Win32_Security",
|
|
"Win32_Storage_FileSystem",
|
|
"Win32_System_Console",
|
|
"Win32_System_DataExchange",
|
|
"Win32_System_JobObjects",
|
|
"Win32_System_LibraryLoader",
|
|
"Win32_System_Memory",
|
|
"Win32_System_Power",
|
|
"Win32_System_SystemInformation",
|
|
"Win32_System_Threading",
|
|
"Win32_UI_Accessibility",
|
|
"Win32_UI_Input_KeyboardAndMouse",
|
|
"Win32_UI_Shell",
|
|
"Win32_UI_WindowsAndMessaging",
|
|
] }
|
|
windows = { version = "0.62.2", features = ["Media_Control", "Foundation", "Foundation_Collections", "Win32_Foundation", "Win32_Media_Audio", "Win32_Security", "Win32_System_Com", "Win32_System_Com_StructuredStorage", "Win32_System_Ole", "Win32_System_Threading", "Win32_System_Variant", "Win32_UI_Accessibility"] }
|
|
windows-core = "0.62.2"
|
|
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"] }
|
|
|
|
[workspace.lints.rust]
|
|
# shared-lints begin
|
|
unsafe_op_in_unsafe_fn = "deny"
|
|
unused_must_use = "deny"
|
|
# shared-lints end
|
|
# shared: forbid; 346 errors left (t1003). Allowed, not warn: scripts/check runs clippy with -D warnings.
|
|
unsafe_code = "allow"
|
|
|
|
[workspace.lints.clippy]
|
|
# shared-lints begin
|
|
await_holding_lock = "deny"
|
|
await_holding_refcell_ref = "deny"
|
|
dbg_macro = "deny"
|
|
disallowed_types = "deny"
|
|
todo = "warn"
|
|
# shared-lints end
|
|
# shared: deny; 85 errors left (t1003). Allowed, not warn: scripts/check runs clippy with -D warnings.
|
|
disallowed_methods = "allow"
|
|
# shared: deny; 437 errors left (t1003)
|
|
let_underscore_must_use = "allow"
|
|
# shared: deny; 144 errors left (t1003)
|
|
undocumented_unsafe_blocks = "allow"
|
|
# shared: warn; 59 errors left under -D warnings (t1003)
|
|
expect_used = "allow"
|
|
# shared: warn; 41 errors left under -D warnings (t1003)
|
|
unwrap_used = "allow"
|
|
|
|
[lints]
|
|
workspace = true
|