Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

ci(desktop): cut release build time with a saved rust cache, unified crate features and thin LTO

Richie McIlroy40a6b3f78e57
diff --git a/.config/hakari.toml b/.config/hakari.toml
index 0dea44fe3..3b2ff1379 100644
--- a/.config/hakari.toml
+++ b/.config/hakari.toml
@@ -16,12 +16,83 @@ resolver = "2"
# Add triples corresponding to platforms commonly used by developers here.
# https://doc.rust-lang.org/rustc/platform-support.html
+# Every target desktop-release.yml ships. Leaving a target out here leaves its
+# platform-specific deps (windows-sys, libc, ...) un-unified, so the sidecar
+# `cargo build -p cap` and Tauri's `cargo build -p cap-desktop` resolve
+# different feature sets and recompile ~500 shared crates in the same job.
platforms = [
- # "x86_64-unknown-linux-gnu",
- # "x86_64-apple-darwin",
+ "x86_64-unknown-linux-gnu",
+ "x86_64-apple-darwin",
"aarch64-apple-darwin",
"x86_64-pc-windows-msvc",
]
# Write out exact versions rather than a semver range. (Defaults to false.)
# exact-versions = true
+
+# --- cap release-build tuning ---
+# cap-muxer is ~55 crates; letting it depend on the hack would drag the whole
+# unified tree into every `cargo build -p cap-muxer`. Any drift it causes is
+# bounded by its own tiny graph.
+[traversal-excludes]
+workspace-members = ["cap-muxer", "cap-muxer-protocol"]
+
+# hakari unifies dev-dependencies as well, so left alone it pins tauri with its
+# `test` feature and tokio `test-util` into every release binary and pulls the
+# Tauri/WebKit stack into the standalone GPUI workspace. Only crates whose
+# feature drift actually cascades through the sidecar and desktop builds stay
+# in the hack; everything else keeps its natural per-binary resolution.
+[final-excludes]
+third-party = [
+ { name = "softbuffer" },
+ { name = "aho-corasick" },
+ { name = "block2" },
+ { name = "cookie" },
+ { name = "core-foundation" },
+ { name = "core-foundation-sys" },
+ { name = "coreaudio-rs" },
+ { name = "coreaudio-sys" },
+ { name = "crossbeam-utils" },
+ { name = "errno" },
+ { name = "event-listener" },
+ { name = "event-listener-strategy" },
+ { name = "fastrand" },
+ { name = "futures-lite" },
+ { name = "getrandom" },
+ { name = "half" },
+ { name = "hashbrown" },
+ { name = "hyper" },
+ { name = "hyper-util" },
+ { name = "image" },
+ { name = "indexmap" },
+ { name = "itertools" },
+ { name = "lru" },
+ { name = "num-traits" },
+ { name = "objc" },
+ { name = "objc2-core-image" },
+ { name = "objc2-foundation" },
+ { name = "objc2-quartz-core" },
+ { name = "once_cell" },
+ { name = "phf_shared" },
+ { name = "serde_json" },
+ { name = "serde_spanned" },
+ { name = "smallvec" },
+ { name = "swift-rs" },
+ { name = "syn" },
+ { name = "tauri" },
+ { name = "tauri-build" },
+ { name = "tokio" },
+ { name = "tokio-util" },
+ { name = "toml" },
+ { name = "tower" },
+ { name = "uuid" },
+ { name = "wayland-protocols" },
+ { name = "wayland-sys" },
+ { name = "winapi" },
+ { name = "windows-numerics" },
+ { name = "windows-strings" },
+ { name = "x11" },
+ { name = "zbus" },
+ { name = "zbus_macros" },
+ { name = "zvariant" },
+]
diff --git a/.github/actions/setup-rust-cache/action.yml b/.github/actions/setup-rust-cache/action.yml
index bb70b395c..7e8c62ac9 100644
--- a/.github/actions/setup-rust-cache/action.yml
+++ b/.github/actions/setup-rust-cache/action.yml
@@ -8,13 +8,27 @@ inputs:
description: "Whether to save the cache"
required: false
default: "false"
+ cache-on-failure:
+ description: "Save the cache even when the job fails (useful when a job fails after the build, e.g. at signing)"
+ required: false
+ default: "false"
+ prefix-key:
+ description: "Cache key prefix. Use a distinct prefix per build flavour (CI debug vs release) so restore-keys never pull an irrelevant cache"
+ required: false
+ default: "v1-rust"
+ workspaces:
+ description: "Newline-separated `path -> target` pairs of Cargo workspaces to cache (rust-cache format)"
+ required: false
+ default: ". -> target"
runs:
using: "composite"
steps:
- name: Cache Rust Dependencies
uses: swatinem/rust-cache@v2
with:
- prefix-key: v1-rust
+ prefix-key: ${{ inputs.prefix-key }}
cache-bin: "false"
save-if: ${{ inputs.save-cache }}
+ cache-on-failure: ${{ inputs.cache-on-failure }}
shared-key: ${{ inputs.target }}
+ workspaces: ${{ inputs.workspaces }}
diff --git a/.github/workflows/desktop-release.yml b/.github/workflows/desktop-release.yml
index d1d7ea90f..6c5a62af5 100644
--- a/.github/workflows/desktop-release.yml
+++ b/.github/workflows/desktop-release.yml
@@ -226,28 +226,6 @@ jobs:
if: ${{ hashFiles('scripts/build-macos-packages.test.mjs') != '' }}
run: node --test scripts/build-macos-packages.test.mjs
- # Nightly and promoted builds carry a version that differs from the
- # committed Cargo.toml; Tauri reads the app version from package.version.
- - name: Stamp build version
- shell: bash
- env:
- BUILD_VERSION: ${{ inputs.version }}
- run: |
- node -e '
- const fs = require("fs");
- const path = "apps/desktop/src-tauri/Cargo.toml";
- const version = process.env.BUILD_VERSION;
- let toml = fs.readFileSync(path, "utf8");
- const re = /^version = ".*"$/m;
- if (!re.test(toml)) {
- console.error("package.version line not found in " + path);
- process.exit(1);
- }
- toml = toml.replace(re, "version = \"" + version + "\"");
- fs.writeFileSync(path, toml);
- console.log("Stamped " + path + " with " + version);
- '
-
- name: Install Linux desktop dependencies
if: ${{ runner.os == 'Linux' }}
uses: ./.github/actions/install-desktop-deps
@@ -278,9 +256,44 @@ jobs:
cargo -V
rustup show active-toolchain
+ # Release builds get their own cache flavour (release-profile rlibs for
+ # both the root workspace and the standalone GPUI workspace). Save it
+ # even when the job fails later, because the Windows job most often dies
+ # at SignPath approval, long after the compile it would have cached.
- uses: ./.github/actions/setup-rust-cache
with:
target: ${{ matrix.settings.target }}
+ prefix-key: v1-rust-release
+ save-cache: true
+ cache-on-failure: true
+ workspaces: |
+ . -> target
+ apps/desktop-gpui -> target
+
+ # Nightly and promoted builds carry a version that differs from the
+ # committed Cargo.toml; Tauri reads the app version from package.version.
+ # Runs after the cache step so the stamped version never lands in the
+ # cache key's Cargo.toml hash (a fresh nightly version each night would
+ # otherwise write a fresh multi-GB cache entry per target per night).
+ - name: Stamp build version
+ shell: bash
+ env:
+ BUILD_VERSION: ${{ inputs.version }}
+ run: |
+ node -e '
+ const fs = require("fs");
+ const path = "apps/desktop/src-tauri/Cargo.toml";
+ const version = process.env.BUILD_VERSION;
+ let toml = fs.readFileSync(path, "utf8");
+ const re = /^version = ".*"$/m;
+ if (!re.test(toml)) {
+ console.error("package.version line not found in " + path);
+ process.exit(1);
+ }
+ toml = toml.replace(re, "version = \"" + version + "\"");
+ fs.writeFileSync(path, toml);
+ console.log("Stamped " + path + " with " + version);
+ '
- uses: ./.github/actions/setup-js
@@ -315,11 +328,12 @@ jobs:
fi
./scripts/build-desktop-binaries.sh ${{ matrix.settings.target }}
- # The release profile uses fat LTO + full debuginfo, so the final link
- # peaks well above the 16GB stock Linux runner and gets OOM-killed
- # ("runner received a shutdown signal"). The runner already ships an
- # active /swapfile (resizing it fails with "Text file busy"), so add a
- # large swapfile on the roomy /mnt disk on top of the existing swap.
+ # The final link used to peak well above the 16GB stock Linux runner and
+ # get OOM-killed ("runner received a shutdown signal") under fat LTO +
+ # full debuginfo. The release profile is thin LTO + line tables now, but
+ # the headroom is cheap, so keep it. The runner already ships an active
+ # /swapfile (resizing it fails with "Text file busy"), so add a large
+ # swapfile on the roomy /mnt disk on top of the existing swap.
# macOS runs on xlarge runners and is unaffected.
- name: Increase swap space (Linux)
if: ${{ runner.os == 'Linux' }}
@@ -334,10 +348,10 @@ jobs:
swapon --show
free -h
- # The same fat-LTO link exhausts commit on the 16GB Windows runner
+ # The same link used to exhaust commit on the 16GB Windows runner
# ("rustc-LLVM ERROR: out of memory" while linking cap-desktop), so
- # raise the pagefile on the roomy D: disk — the Windows analog of the
- # Linux swapfile above.
+ # raise the pagefile on the roomy D: disk, the Windows analog of the
+ # Linux swapfile above. Kept for headroom after the move to thin LTO.
- name: Increase pagefile size (Windows)
if: ${{ runner.os == 'Windows' }}
uses: al-cheb/configure-pagefile-action@a3b6ebd6b634da88790d9c58d4b37a7f4a7b8708 # v1.4
diff --git a/Cargo.lock b/Cargo.lock
index 3dce4a298..4d08eb8dd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -706,7 +706,6 @@ checksum = "edca88bc138befd0323b20752846e6587272d3b03b0343c8ea28a6f819e6e71f"
dependencies = [
"async-trait",
"axum-core 0.4.5",
- "axum-macros 0.4.2",
"base64 0.22.1",
"bytes",
"futures-util",
@@ -743,7 +742,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "31b698c5f9a010f6573133b09e0de5408834d0c82f8d7475a89fc1867a71cd90"
dependencies = [
"axum-core 0.5.6",
- "axum-macros 0.5.1",
+ "axum-macros",
"base64 0.22.1",
"bytes",
"form_urlencoded",
@@ -813,17 +812,6 @@ dependencies = [
"tracing",
]
-[[package]]
-name = "axum-macros"
-version = "0.4.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "57d123550fa8d071b7255cb0cc04dc302baa6c8c4a79f55701552684d8399bce"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn 2.0.106",
-]
-
[[package]]
name = "axum-macros"
version = "0.5.1"
@@ -1361,6 +1349,7 @@ dependencies = [
"tokio",
"tracing",
"uuid",
+ "workspace-hack",
]
[[package]]
@@ -1418,6 +1407,7 @@ dependencies = [
"tokio",
"tracing",
"wgpu",
+ "workspace-hack",
]
[[package]]
@@ -2060,6 +2050,7 @@ name = "cap-rnnoise"
version = "0.1.0"
dependencies = [
"cc",
+ "workspace-hack",
]
[[package]]
@@ -13638,40 +13629,50 @@ dependencies = [
name = "workspace-hack"
version = "0.1.0"
dependencies = [
+ "ahash",
"arrayvec",
- "axum 0.7.9",
"bitflags 2.13.1",
"bytemuck",
"chrono",
"clang-sys",
"clap",
"clap_builder",
+ "concurrent-queue",
"deranged",
+ "digest",
+ "dispatch2",
+ "dpi",
"either",
"flate2",
"form_urlencoded",
"futures-channel",
"futures-core",
"futures-executor",
+ "futures-io",
"futures-sink",
"futures-task",
"futures-util",
- "getrandom 0.2.16",
"gif",
- "hashbrown 0.15.5",
"idna",
- "itertools 0.12.1",
- "itertools 0.13.0",
"libc",
+ "linux-raw-sys 0.11.0",
+ "linux-raw-sys 0.4.15",
"log",
"memchr",
"miniz_oxide",
+ "ndarray 0.17.2",
"nom 7.1.3",
+ "num-complex",
+ "num-integer",
"num-rational",
- "num-traits",
+ "objc2 0.6.2",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "open",
+ "ort",
+ "ort-sys",
"percent-encoding",
- "phf_shared 0.10.0",
- "phf_shared 0.11.3",
+ "prettyplease",
"proc-macro2",
"profiling",
"quote",
@@ -13682,25 +13683,44 @@ dependencies = [
"reqwest",
"rgb",
"rustc-hash 1.1.0",
+ "rustix 0.38.44",
+ "rustix 1.1.2",
"schemars 0.8.22",
+ "scopeguard",
"semver",
"serde",
"serde_core",
- "serde_json",
"simd-adler32",
- "smallvec",
+ "smol_str",
"specta",
"specta-macros",
"stable_deref_trait",
- "syn 2.0.106",
"tauri-utils",
"thiserror 2.0.16",
"time",
- "tokio",
+ "toml_datetime 0.7.5+spec-1.1.0",
+ "toml_edit 0.23.10+spec-1.0.0",
+ "toml_parser",
+ "toml_writer",
"tracing",
"tracing-core",
"tracing-subscriber",
- "uuid",
+ "ttf-parser 0.25.1",
+ "wayland-backend",
+ "windows 0.54.0",
+ "windows 0.58.0",
+ "windows 0.60.0",
+ "windows 0.61.3",
+ "windows-core 0.60.1",
+ "windows-core 0.61.2",
+ "windows-result 0.3.4",
+ "windows-sys 0.52.0",
+ "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
+ "winnow 0.7.13",
+ "x11rb",
+ "x11rb-protocol",
]
[[package]]
diff --git a/Cargo.toml b/Cargo.toml
index 4cc80ceb6..8a9be0ffb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -113,9 +113,17 @@ opt-level = 2
[profile.release]
panic = "unwind"
codegen-units = 1 # Compile crates one after another so the compiler can optimize better
-lto = true # Enables link to optimizations
+# Thin LTO runs the cross-crate optimisation in parallel across crates. Fat LTO
+# serialised the whole program through one thread and one address space, which
+# cost ~60 minutes of the Windows release job (18m for the CLI link + 41m for
+# the desktop link) and needed the swapfile / pagefile workarounds in
+# desktop-release.yml to survive 16GB runners.
+lto = "thin"
opt-level = "s" # Optimize for binary size
-debug = true
+# Line tables are all Sentry needs to symbolicate the uploaded dSYM / PDB
+# (function names + file:line). Full debuginfo multiplied rlib size and link
+# memory for variable/type info nothing consumes.
+debug = "line-tables-only"
[patch.crates-io]
# screencapturekit = { git = "https://github.com/CapSoftware/screencapturekit-rs", rev = "7ff1e103742e56c8f6c2e940b5e52684ed0bed69" } # branch = "cap-main"
diff --git a/apps/desktop-gpui/Cargo.lock b/apps/desktop-gpui/Cargo.lock
index cf9255478..af69eaab0 100644
--- a/apps/desktop-gpui/Cargo.lock
+++ b/apps/desktop-gpui/Cargo.lock
@@ -848,7 +848,6 @@ checksum = "edca88bc138befd0323b20752846e6587272d3b03b0343c8ea28a6f819e6e71f"
dependencies = [
"async-trait",
"axum-core",
- "axum-macros",
"base64 0.22.1",
"bytes",
"futures-util",
@@ -899,17 +898,6 @@ dependencies = [
"tracing",
]
-[[package]]
-name = "axum-macros"
-version = "0.4.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "57d123550fa8d071b7255cb0cc04dc302baa6c8c4a79f55701552684d8399bce"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn 2.0.119",
-]
-
[[package]]
name = "backtrace"
version = "0.3.76"
@@ -1458,6 +1446,7 @@ dependencies = [
"ort",
"tracing",
"wgpu 25.0.2",
+ "workspace-hack",
]
[[package]]
@@ -1957,6 +1946,7 @@ name = "cap-rnnoise"
version = "0.1.0"
dependencies = [
"cc",
+ "workspace-hack",
]
[[package]]
@@ -3364,6 +3354,9 @@ name = "dpi"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76"
+dependencies = [
+ "serde",
+]
[[package]]
name = "dtoa"
@@ -6036,6 +6029,12 @@ version = "0.4.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
+[[package]]
+name = "linux-raw-sys"
+version = "0.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039"
+
[[package]]
name = "linux-raw-sys"
version = "0.12.1"
@@ -6959,6 +6958,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f"
dependencies = [
"objc2-encode",
+ "objc2-exception-helper",
]
[[package]]
@@ -7189,6 +7189,15 @@ version = "4.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33"
+[[package]]
+name = "objc2-exception-helper"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c7a1c5fbb72d7735b076bb47b578523aedc40f3c439bea6dfd595c089d79d98a"
+dependencies = [
+ "cc",
+]
+
[[package]]
name = "objc2-foundation"
version = "0.2.2"
@@ -7485,6 +7494,7 @@ version = "5.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f9cfef937e9c486488c7e3d949ae31c0f1d06bdacd75b99c086cb35356e30408"
dependencies = [
+ "dunce",
"is-wsl",
"libc",
]
@@ -10063,6 +10073,9 @@ name = "smol_str"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd538fb6910ac1099850255cf94a94df6551fbdd602454387d0adb2d1ca6dead"
+dependencies = [
+ "serde",
+]
[[package]]
name = "smol_str"
@@ -11092,6 +11105,15 @@ dependencies = [
"serde",
]
+[[package]]
+name = "toml_datetime"
+version = "0.7.5+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347"
+dependencies = [
+ "serde_core",
+]
+
[[package]]
name = "toml_datetime"
version = "1.1.1+spec-1.1.0"
@@ -11137,6 +11159,19 @@ dependencies = [
"winnow 0.7.15",
]
+[[package]]
+name = "toml_edit"
+version = "0.23.10+spec-1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "84c8b9f757e028cee9fa244aea147aab2a9ec09d5325a9b01e0a49730c2b5269"
+dependencies = [
+ "indexmap 2.14.0",
+ "toml_datetime 0.7.5+spec-1.1.0",
+ "toml_parser",
+ "toml_writer",
+ "winnow 0.7.15",
+]
+
[[package]]
name = "toml_edit"
version = "0.25.13+spec-1.1.0"
@@ -13356,40 +13391,50 @@ checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
name = "workspace-hack"
version = "0.1.0"
dependencies = [
+ "ahash",
"arrayvec",
- "axum",
"bitflags 2.13.1",
"bytemuck",
"chrono",
"clang-sys",
"clap",
"clap_builder",
+ "concurrent-queue",
"deranged",
+ "digest",
+ "dispatch2",
+ "dpi",
"either",
"flate2",
"form_urlencoded",
"futures-channel",
"futures-core",
"futures-executor",
+ "futures-io",
"futures-sink",
"futures-task",
"futures-util",
- "getrandom 0.2.17",
"gif 0.13.3",
- "hashbrown 0.15.5",
"idna",
- "itertools 0.12.1",
- "itertools 0.13.0",
"libc",
+ "linux-raw-sys 0.11.0",
+ "linux-raw-sys 0.4.15",
"log",
"memchr",
"miniz_oxide",
+ "ndarray 0.17.2",
"nom 7.1.3",
+ "num-complex",
+ "num-integer",
"num-rational",
- "num-traits",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "open",
+ "ort",
+ "ort-sys",
"percent-encoding",
- "phf_shared 0.10.0",
- "phf_shared 0.11.3",
+ "prettyplease",
"proc-macro2",
"profiling",
"quote",
@@ -13400,25 +13445,44 @@ dependencies = [
"reqwest 0.12.24",
"rgb",
"rustc-hash 1.1.0",
+ "rustix 0.38.44",
+ "rustix 1.1.4",
"schemars 0.8.22",
+ "scopeguard",
"semver",
"serde",
"serde_core",
- "serde_json",
"simd-adler32",
- "smallvec",
+ "smol_str 0.2.2",
"specta",
"specta-macros",
"stable_deref_trait",
- "syn 2.0.119",
"tauri-utils",
"thiserror 2.0.20",
"time",
- "tokio",
+ "toml_datetime 0.7.5+spec-1.1.0",
+ "toml_edit 0.23.10+spec-1.0.0",
+ "toml_parser",
+ "toml_writer",
"tracing",
"tracing-core",
"tracing-subscriber",
- "uuid",
+ "ttf-parser 0.25.1",
+ "wayland-backend",
+ "windows 0.54.0",
+ "windows 0.58.0",
+ "windows 0.60.0",
+ "windows 0.61.3",
+ "windows-core 0.60.1",
+ "windows-core 0.61.2",
+ "windows-result 0.3.4",
+ "windows-sys 0.52.0",
+ "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
+ "winnow 0.7.15",
+ "x11rb",
+ "x11rb-protocol",
]
[[package]]
@@ -13456,6 +13520,8 @@ dependencies = [
"as-raw-xcb-connection",
"gethostname",
"libc",
+ "libloading 0.8.9",
+ "once_cell",
"rustix 1.1.4",
"x11rb-protocol",
"xcursor",
diff --git a/crates/automation/Cargo.toml b/crates/automation/Cargo.toml
index 98b9500ce..4bfb33a5d 100644
--- a/crates/automation/Cargo.toml
+++ b/crates/automation/Cargo.toml
@@ -13,6 +13,7 @@ uuid = { version = "1.18.1", features = ["v4"] }
tracing.workspace = true
thiserror.workspace = true
tokio.workspace = true
+workspace-hack = { version = "0.1", path = "../workspace-hack" }
[dev-dependencies]
tokio = { workspace = true, features = ["test-util"] }
diff --git a/crates/camera-effects/Cargo.toml b/crates/camera-effects/Cargo.toml
index e51e1960b..d8f8c2582 100644
--- a/crates/camera-effects/Cargo.toml
+++ b/crates/camera-effects/Cargo.toml
@@ -12,6 +12,7 @@ wgpu.workspace = true
tracing.workspace = true
bytemuck = { version = "1.7", features = ["derive"] }
ndarray = "0.16"
+workspace-hack = { version = "0.1", path = "../workspace-hack" }
[dev-dependencies]
tokio.workspace = true
diff --git a/crates/rnnoise/Cargo.toml b/crates/rnnoise/Cargo.toml
index ff2052797..97747c2ae 100644
--- a/crates/rnnoise/Cargo.toml
+++ b/crates/rnnoise/Cargo.toml
@@ -9,3 +9,6 @@ cc = "1"
[lints]
workspace = true
+
+[dependencies]
+workspace-hack = { version = "0.1", path = "../workspace-hack" }
diff --git a/crates/workspace-hack/Cargo.toml b/crates/workspace-hack/Cargo.toml
index 32e6b341b..9787e0e6c 100644
--- a/crates/workspace-hack/Cargo.toml
+++ b/crates/workspace-hack/Cargo.toml
@@ -16,13 +16,13 @@ publish = false
### BEGIN HAKARI SECTION
[dependencies]
arrayvec = { version = "0.7" }
-axum = { version = "0.7", features = ["macros", "ws"] }
bitflags = { version = "2", default-features = false, features = ["serde", "std"] }
bytemuck = { version = "1", default-features = false, features = ["aarch64_simd", "derive", "extern_crate_alloc", "min_const_generics"] }
chrono = { version = "0.4", features = ["serde"] }
clap = { version = "4", features = ["cargo", "derive"] }
clap_builder = { version = "4", default-features = false, features = ["cargo", "color", "help", "std", "suggestions", "usage"] }
deranged = { version = "0.5", features = ["powerfmt", "serde"] }
+dpi = { version = "0.1", features = ["serde"] }
either = { version = "1", features = ["use_std"] }
flate2 = { version = "1", features = ["zlib-rs"] }
form_urlencoded = { version = "1" }
@@ -32,21 +32,17 @@ futures-executor = { version = "0.3" }
futures-sink = { version = "0.3" }
futures-task = { version = "0.3" }
futures-util = { version = "0.3", features = ["channel", "io", "sink"] }
-getrandom = { version = "0.2", default-features = false, features = ["js", "rdrand", "std"] }
gif = { version = "0.13" }
-hashbrown = { version = "0.15", default-features = false, features = ["default-hasher", "inline-more"] }
idna = { version = "1" }
-itertools-5ef9efb8ec2df382 = { package = "itertools", version = "0.12" }
libc = { version = "0.2" }
log = { version = "0.4", default-features = false, features = ["std"] }
memchr = { version = "2" }
miniz_oxide = { version = "0.8", features = ["simd"] }
nom = { version = "7" }
+num-integer = { version = "0.1", default-features = false, features = ["i128", "std"] }
num-rational = { version = "0.4", features = ["serde"] }
-num-traits = { version = "0.2", features = ["i128"] }
+open = { version = "5", default-features = false, features = ["shellexecute-on-windows"] }
percent-encoding = { version = "2" }
-phf_shared-93f6ce9d446188ac = { package = "phf_shared", version = "0.10", default-features = false, features = ["std"] }
-phf_shared-a6292c17cd707f01 = { package = "phf_shared", version = "0.11" }
proc-macro2 = { version = "1", features = ["span-locations"] }
profiling = { version = "1" }
quote = { version = "1" }
@@ -61,19 +57,20 @@ schemars = { version = "0.8", features = ["preserve_order", "url", "uuid1"] }
semver = { version = "1", features = ["serde"] }
serde = { version = "1", features = ["alloc", "derive", "rc"] }
serde_core = { version = "1", features = ["alloc", "rc"] }
-serde_json = { version = "1", features = ["alloc", "raw_value", "unbounded_depth"] }
simd-adler32 = { version = "0.3" }
-smallvec = { version = "1", default-features = false, features = ["const_new"] }
-specta = { version = "2.0.0-rc.20", features = ["derive", "function", "serde_json", "uuid"] }
+smol_str = { version = "0.2" }
+specta = { version = "2.0.0-rc.20", features = ["chrono", "derive", "function", "serde_json", "uuid"] }
stable_deref_trait = { version = "1" }
tauri-utils = { version = "2", default-features = false, features = ["build", "compression", "resources"] }
thiserror = { version = "2" }
time = { version = "0.3", features = ["formatting", "macros", "parsing", "serde"] }
-tokio = { version = "1", features = ["fs", "io-std", "io-util", "macros", "net", "process", "rt-multi-thread", "sync", "time", "tracing"] }
+toml_datetime = { version = "0.7", features = ["serde"] }
+toml_parser = { version = "1" }
+toml_writer = { version = "1" }
tracing = { version = "0.1", features = ["log"] }
tracing-core = { version = "0.1" }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
-uuid = { version = "1", features = ["serde", "v4", "v7"] }
+winnow = { version = "0.7" }
[build-dependencies]
bitflags = { version = "2", default-features = false, features = ["serde", "std"] }
@@ -81,19 +78,13 @@ clang-sys = { version = "1", default-features = false, features = ["clang_11_0",
either = { version = "1", features = ["use_std"] }
flate2 = { version = "1", features = ["zlib-rs"] }
form_urlencoded = { version = "1" }
-getrandom = { version = "0.2", default-features = false, features = ["js", "rdrand", "std"] }
-hashbrown = { version = "0.15", default-features = false, features = ["default-hasher", "inline-more"] }
idna = { version = "1" }
-itertools-594e8ee84c453af0 = { package = "itertools", version = "0.13" }
-itertools-5ef9efb8ec2df382 = { package = "itertools", version = "0.12" }
libc = { version = "0.2" }
log = { version = "0.4", default-features = false, features = ["std"] }
memchr = { version = "2" }
miniz_oxide = { version = "0.8", features = ["simd"] }
nom = { version = "7" }
percent-encoding = { version = "2" }
-phf_shared-93f6ce9d446188ac = { package = "phf_shared", version = "0.10", default-features = false, features = ["std"] }
-phf_shared-a6292c17cd707f01 = { package = "phf_shared", version = "0.11" }
proc-macro2 = { version = "1", features = ["span-locations"] }
quote = { version = "1" }
rand = { version = "0.8", features = ["small_rng"] }
@@ -105,14 +96,105 @@ schemars = { version = "0.8", features = ["preserve_order", "url", "uuid1"] }
semver = { version = "1", features = ["serde"] }
serde = { version = "1", features = ["alloc", "derive", "rc"] }
serde_core = { version = "1", features = ["alloc", "rc"] }
-serde_json = { version = "1", features = ["alloc", "raw_value", "unbounded_depth"] }
simd-adler32 = { version = "0.3" }
-smallvec = { version = "1", default-features = false, features = ["const_new"] }
specta-macros = { version = "2.0.0-rc.17", features = ["DO_NOT_USE_function"] }
stable_deref_trait = { version = "1" }
-syn = { version = "2", features = ["extra-traits", "fold", "full", "visit", "visit-mut"] }
tauri-utils = { version = "2", default-features = false, features = ["build", "compression", "resources"] }
thiserror = { version = "2" }
-uuid = { version = "1", features = ["serde", "v4", "v7"] }
+toml_datetime = { version = "0.7", features = ["serde"] }
+toml_parser = { version = "1" }
+toml_writer = { version = "1" }
+winnow = { version = "0.7" }
+
+[target.x86_64-unknown-linux-gnu.dependencies]
+ahash = { version = "0.8", features = ["no-rng", "serde"] }
+concurrent-queue = { version = "2" }
+digest = { version = "0.10", features = ["mac", "std"] }
+futures-io = { version = "0.3" }
+libc = { version = "0.2", default-features = false, features = ["extra_traits"] }
+linux-raw-sys-9fbad63c4bcf4a8f = { package = "linux-raw-sys", version = "0.4", default-features = false, features = ["elf", "errno", "general", "ioctl", "no_std", "prctl", "system"] }
+linux-raw-sys-a6292c17cd707f01 = { package = "linux-raw-sys", version = "0.11", default-features = false, features = ["auxvec", "elf", "errno", "general", "if_ether", "ioctl", "net", "netlink", "no_std", "prctl", "system", "xdp"] }
+ndarray = { version = "0.17" }
+num-complex = { version = "0.4" }
+num-integer = { version = "0.1" }
+num-rational = { version = "0.4", default-features = false, features = ["num-bigint-std"] }
+ort = { version = "2.0.0-rc.12", features = ["load-dynamic"] }
+ort-sys = { version = "2.0.0-rc.12", default-features = false, features = ["api-24", "copy-dylibs", "disable-linking", "download-binaries", "std", "tls-native"] }
+rustix-d585fab2519d2d1 = { package = "rustix", version = "0.38", features = ["event", "mm", "pipe", "process", "shm", "system", "thread"] }
+rustix-dff4ba8e3ae991db = { package = "rustix", version = "1", features = ["event", "net", "pipe", "process", "shm", "system", "time"] }
+toml_edit = { version = "0.23" }
+ttf-parser = { version = "0.25", default-features = false, features = ["apple-layout", "glyph-names", "gvar-alloc", "no-std-float", "opentype-layout", "variable-fonts"] }
+wayland-backend = { version = "0.3", default-features = false, features = ["client_system", "dlopen"] }
+x11rb = { version = "0.13", default-features = false, features = ["composite", "dl-libxcb", "randr", "resource_manager", "shm", "xinput", "xkb"] }
+x11rb-protocol = { version = "0.13", default-features = false, features = ["composite", "randr", "resource_manager", "shm", "xinput", "xkb"] }
+
+[target.x86_64-unknown-linux-gnu.build-dependencies]
+digest = { version = "0.10", features = ["mac", "std"] }
+libc = { version = "0.2", default-features = false, features = ["extra_traits"] }
+linux-raw-sys-9fbad63c4bcf4a8f = { package = "linux-raw-sys", version = "0.4", default-features = false, features = ["elf", "errno", "general", "ioctl", "no_std", "prctl", "system"] }
+prettyplease = { version = "0.2", default-features = false, features = ["verbatim"] }
+rustix-d585fab2519d2d1 = { package = "rustix", version = "0.38", features = ["event", "mm", "pipe", "process", "shm", "system", "thread"] }
+toml_edit = { version = "0.23" }
+
+[target.x86_64-apple-darwin.dependencies]
+dispatch2 = { version = "0.3" }
+futures-io = { version = "0.3" }
+libc = { version = "0.2", default-features = false, features = ["extra_traits"] }
+objc2 = { version = "0.6", features = ["disable-encoding-assertions", "exception"] }
+objc2-core-foundation = { version = "0.3", default-features = false, features = ["CFArray", "CFBase", "CFCGTypes", "CFData", "CFDate", "CFDictionary", "CFError", "CFNumber", "CFPlugInCOM", "CFRunLoop", "CFString", "CFURL", "CFUUID", "CFUserNotification", "objc2", "std"] }
+objc2-core-graphics = { version = "0.3", default-features = false, features = ["CGColor", "CGColorSpace", "CGContext", "CGDataProvider", "CGDirectDisplay", "CGEventTypes", "CGFont", "CGImage", "CGPath", "objc2", "std"] }
+rustix-dff4ba8e3ae991db = { package = "rustix", version = "1", features = ["event", "fs", "pipe", "process", "system", "time"] }
+scopeguard = { version = "1" }
+
+[target.x86_64-apple-darwin.build-dependencies]
+deranged = { version = "0.5", features = ["powerfmt", "serde"] }
+libc = { version = "0.2", default-features = false, features = ["extra_traits"] }
+scopeguard = { version = "1" }
+time = { version = "0.3", features = ["formatting", "macros", "parsing", "serde"] }
+
+[target.aarch64-apple-darwin.dependencies]
+dispatch2 = { version = "0.3" }
+futures-io = { version = "0.3" }
+libc = { version = "0.2", default-features = false, features = ["extra_traits"] }
+ndarray = { version = "0.17" }
+num-complex = { version = "0.4" }
+num-integer = { version = "0.1" }
+objc2 = { version = "0.6", features = ["disable-encoding-assertions", "exception"] }
+objc2-core-foundation = { version = "0.3", default-features = false, features = ["CFArray", "CFBase", "CFCGTypes", "CFData", "CFDate", "CFDictionary", "CFError", "CFNumber", "CFPlugInCOM", "CFRunLoop", "CFString", "CFURL", "CFUUID", "CFUserNotification", "objc2", "std"] }
+objc2-core-graphics = { version = "0.3", default-features = false, features = ["CGColor", "CGColorSpace", "CGContext", "CGDataProvider", "CGDirectDisplay", "CGEventTypes", "CGFont", "CGImage", "CGPath", "objc2", "std"] }
+ort = { version = "2.0.0-rc.12", features = ["coreml", "load-dynamic"] }
+ort-sys = { version = "2.0.0-rc.12", default-features = false, features = ["api-24", "copy-dylibs", "coreml", "disable-linking", "download-binaries", "std", "tls-native"] }
+rustix-dff4ba8e3ae991db = { package = "rustix", version = "1", features = ["event", "fs", "pipe", "process", "system", "time"] }
+scopeguard = { version = "1" }
+
+[target.aarch64-apple-darwin.build-dependencies]
+deranged = { version = "0.5", features = ["powerfmt", "serde"] }
+libc = { version = "0.2", default-features = false, features = ["extra_traits"] }
+scopeguard = { version = "1" }
+time = { version = "0.3", features = ["formatting", "macros", "parsing", "serde"] }
+
+[target.x86_64-pc-windows-msvc.dependencies]
+concurrent-queue = { version = "2" }
+futures-io = { version = "0.3" }
+ndarray = { version = "0.17" }
+num-complex = { version = "0.4" }
+num-integer = { version = "0.1" }
+ort = { version = "2.0.0-rc.12", features = ["directml", "load-dynamic"] }
+ort-sys = { version = "2.0.0-rc.12", default-features = false, features = ["api-24", "copy-dylibs", "directml", "disable-linking", "download-binaries", "std", "tls-native"] }
+windows-332723e2a07a5e2a = { package = "windows", version = "0.58", features = ["Win32_Graphics_Direct3D12", "Win32_Graphics_Direct3D_Dxc", "Win32_Graphics_Direct3D_Fxc", "Win32_Graphics_DirectComposition", "Win32_Graphics_Dxgi_Common", "Win32_Graphics_Gdi", "Win32_Graphics_OpenGL", "Win32_Security", "Win32_Storage_FileSystem", "Win32_System_Diagnostics_Debug", "Win32_System_Kernel", "Win32_System_LibraryLoader", "Win32_System_Performance", "Win32_System_Pipes", "Win32_System_Threading", "Win32_System_WindowsProgramming", "Win32_UI_WindowsAndMessaging"] }
+windows-4db8c43aad08e7ae = { package = "windows", version = "0.60", features = ["Foundation_Collections", "Foundation_Metadata", "Globalization", "Graphics_Capture", "Graphics_DirectX_Direct3D11", "Graphics_Imaging", "Media_Core", "Media_MediaProperties", "Media_Ocr", "Media_Transcoding", "Security_Authorization_AppCapabilityAccess", "Storage_Search", "Storage_Streams", "System", "Win32_Devices_FunctionDiscovery", "Win32_Graphics_Direct3D11", "Win32_Graphics_Direct3D12", "Win32_Graphics_Direct3D_Fxc", "Win32_Graphics_Dwm", "Win32_Graphics_Dxgi_Common", "Win32_Graphics_Gdi", "Win32_Media_Audio", "Win32_Media_DirectShow", "Win32_Media_DxMediaObjects", "Win32_Media_KernelStreaming", "Win32_Media_MediaFoundation", "Win32_Security", "Win32_Storage_FileSystem", "Win32_Storage_Xps", "Win32_System_Com_StructuredStorage", "Win32_System_Diagnostics_Debug", "Win32_System_LibraryLoader", "Win32_System_Ole", "Win32_System_Performance", "Win32_System_Power", "Win32_System_SystemInformation", "Win32_System_Threading", "Win32_System_Variant", "Win32_System_WinRT_Direct3D11", "Win32_System_WinRT_Graphics_Capture", "Win32_UI_HiDpi", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_Shell_PropertiesSystem", "Win32_UI_WindowsAndMessaging"] }
+windows-a586ff5d864ff3ff = { package = "windows", version = "0.54", features = ["Wdk_System_SystemInformation", "Wdk_System_SystemServices", "Wdk_System_Threading", "Win32_Devices_Properties", "Win32_Media_Audio", "Win32_Media_KernelStreaming", "Win32_Media_Multimedia", "Win32_NetworkManagement_IpHelper", "Win32_NetworkManagement_Ndis", "Win32_NetworkManagement_NetManagement", "Win32_Networking_WinSock", "Win32_Security_Authentication_Identity", "Win32_Security_Authorization", "Win32_Storage_FileSystem", "Win32_System_Com_StructuredStorage", "Win32_System_Diagnostics_Debug", "Win32_System_IO", "Win32_System_Ioctl", "Win32_System_Kernel", "Win32_System_Memory", "Win32_System_Performance", "Win32_System_Power", "Win32_System_ProcessStatus", "Win32_System_Registry", "Win32_System_RemoteDesktop", "Win32_System_Rpc", "Win32_System_SystemInformation", "Win32_System_SystemServices", "Win32_System_Threading", "Win32_System_Variant", "Win32_System_WindowsProgramming", "Win32_System_Wmi", "Win32_UI_Shell_PropertiesSystem"] }
+windows-core-4db8c43aad08e7ae = { package = "windows-core", version = "0.60" }
+windows-core-d4189bed749088b6 = { package = "windows-core", version = "0.61" }
+windows-d4189bed749088b6 = { package = "windows", version = "0.61", features = ["Data_Xml_Dom", "Foundation_Collections", "UI_Notifications", "Wdk_System_SystemInformation", "Wdk_System_SystemServices", "Wdk_System_Threading", "Win32_Devices_HumanInterfaceDevice", "Win32_Globalization", "Win32_Graphics_Dwm", "Win32_Graphics_Gdi", "Win32_NetworkManagement_IpHelper", "Win32_NetworkManagement_Ndis", "Win32_NetworkManagement_NetManagement", "Win32_Networking_WinSock", "Win32_Security_Authentication_Identity", "Win32_Security_Authorization", "Win32_Storage_FileSystem", "Win32_System_Com_StructuredStorage", "Win32_System_DataExchange", "Win32_System_Diagnostics_Debug", "Win32_System_Diagnostics_ToolHelp", "Win32_System_IO", "Win32_System_Ioctl", "Win32_System_Kernel", "Win32_System_LibraryLoader", "Win32_System_Memory", "Win32_System_Ole", "Win32_System_Performance", "Win32_System_Power", "Win32_System_ProcessStatus", "Win32_System_Registry", "Win32_System_RemoteDesktop", "Win32_System_Rpc", "Win32_System_SystemInformation", "Win32_System_SystemServices", "Win32_System_Threading", "Win32_System_Variant", "Win32_System_WinRT", "Win32_System_WindowsProgramming", "Win32_System_Wmi", "Win32_UI_Accessibility", "Win32_UI_Controls", "Win32_UI_HiDpi", "Win32_UI_Input_Ime", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_Input_Pointer", "Win32_UI_Input_Touch", "Win32_UI_Shell_Common", "Win32_UI_TextServices", "Win32_UI_WindowsAndMessaging"] }
+windows-result = { version = "0.3" }
+windows-sys-4db8c43aad08e7ae = { package = "windows-sys", version = "0.60", features = ["Win32_Globalization", "Win32_Graphics_Gdi", "Win32_Security", "Win32_Storage_FileSystem", "Win32_System_Console", "Win32_System_DataExchange", "Win32_System_LibraryLoader", "Win32_System_Memory", "Win32_System_Ole", "Win32_System_SystemServices", "Win32_System_Threading", "Win32_UI_Accessibility", "Win32_UI_Controls", "Win32_UI_HiDpi", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_Shell", "Win32_UI_WindowsAndMessaging"] }
+windows-sys-73dcd821b1037cfd = { package = "windows-sys", version = "0.59", features = ["Wdk_Foundation", "Wdk_Storage_FileSystem", "Wdk_System_IO", "Win32_Graphics_Dwm", "Win32_Graphics_Gdi", "Win32_NetworkManagement_IpHelper", "Win32_Networking_WinSock", "Win32_Security", "Win32_Storage_FileSystem", "Win32_System_Com", "Win32_System_Console", "Win32_System_Diagnostics_Debug", "Win32_System_IO", "Win32_System_LibraryLoader", "Win32_System_Pipes", "Win32_System_Registry", "Win32_System_SystemInformation", "Win32_System_SystemServices", "Win32_System_Threading", "Win32_System_Time", "Win32_System_WindowsProgramming", "Win32_UI_Controls", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_Shell_Common", "Win32_UI_WindowsAndMessaging"] }
+windows-sys-b21d60becc0929df = { package = "windows-sys", version = "0.52", features = ["Win32_Devices_HumanInterfaceDevice", "Win32_Foundation", "Win32_Globalization", "Win32_Graphics_Dwm", "Win32_Graphics_Gdi", "Win32_Media", "Win32_Security", "Win32_Storage_FileSystem", "Win32_System_Com_StructuredStorage", "Win32_System_Console", "Win32_System_LibraryLoader", "Win32_System_Ole", "Win32_System_Registry", "Win32_System_SystemInformation", "Win32_System_SystemServices", "Win32_System_Threading", "Win32_System_WindowsProgramming", "Win32_UI_Accessibility", "Win32_UI_Controls", "Win32_UI_HiDpi", "Win32_UI_Input_Ime", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_Input_Pointer", "Win32_UI_Input_Touch", "Win32_UI_Shell", "Win32_UI_TextServices", "Win32_UI_WindowsAndMessaging"] }
+windows-sys-d4189bed749088b6 = { package = "windows-sys", version = "0.61", features = ["Wdk_Foundation", "Wdk_Storage_FileSystem", "Win32_Globalization", "Win32_Networking_WinSock", "Win32_Security_Authentication_Identity", "Win32_Security_Credentials", "Win32_Security_Cryptography", "Win32_Storage_FileSystem", "Win32_System_Com", "Win32_System_Console", "Win32_System_Diagnostics_Debug", "Win32_System_IO", "Win32_System_LibraryLoader", "Win32_System_Memory", "Win32_System_SystemInformation", "Win32_System_SystemServices", "Win32_System_Threading", "Win32_System_WindowsProgramming", "Win32_UI_Shell"] }
+
+[target.x86_64-pc-windows-msvc.build-dependencies]
+windows-sys-73dcd821b1037cfd = { package = "windows-sys", version = "0.59", features = ["Wdk_Foundation", "Wdk_Storage_FileSystem", "Wdk_System_IO", "Win32_Graphics_Dwm", "Win32_Graphics_Gdi", "Win32_NetworkManagement_IpHelper", "Win32_Networking_WinSock", "Win32_Security", "Win32_Storage_FileSystem", "Win32_System_Com", "Win32_System_Console", "Win32_System_Diagnostics_Debug", "Win32_System_IO", "Win32_System_LibraryLoader", "Win32_System_Pipes", "Win32_System_Registry", "Win32_System_SystemInformation", "Win32_System_SystemServices", "Win32_System_Threading", "Win32_System_Time", "Win32_System_WindowsProgramming", "Win32_UI_Controls", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_Shell_Common", "Win32_UI_WindowsAndMessaging"] }
+windows-sys-d4189bed749088b6 = { package = "windows-sys", version = "0.61", features = ["Wdk_Foundation", "Wdk_Storage_FileSystem", "Win32_Globalization", "Win32_Networking_WinSock", "Win32_Security_Authentication_Identity", "Win32_Security_Credentials", "Win32_Security_Cryptography", "Win32_Storage_FileSystem", "Win32_System_Com", "Win32_System_Console", "Win32_System_Diagnostics_Debug", "Win32_System_IO", "Win32_System_LibraryLoader", "Win32_System_Memory", "Win32_System_SystemInformation", "Win32_System_SystemServices", "Win32_System_Threading", "Win32_System_WindowsProgramming", "Win32_UI_Shell"] }
### END HAKARI SECTION