From 1d5e2557872733e6018ae6ee5c1d0dce9c75c6e6 Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Fri, 9 Oct 2026 05:43:35 +0300 Subject: [PATCH] fix(accessibility): build arboard without image support The paste path only reads and writes text. arboard's default image-data feature pulled the image crate and its codecs into every build with the paste feature on. Co-authored-by: Medulla --- Cargo.lock | 47 -------------------- crates/tinycomputer-accessibility/Cargo.toml | 2 +- 2 files changed, 1 insertion(+), 48 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1bad3e95..094d5faf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -197,12 +197,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0348a1c054491f4bfe6ab86a7b6ab1e44e45d899005de92f58b3df180b36ddaf" dependencies = [ "clipboard-win", - "image", "log", "objc2 0.6.4", "objc2-app-kit 0.3.2", - "objc2-core-foundation", - "objc2-core-graphics", "objc2-foundation 0.3.2", "parking_lot", "percent-encoding", @@ -528,12 +525,6 @@ version = "0.8.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "61803da095bee82a81bb1a452ecc25d3b2f1416d1897eb86430c6159ef717c17" -[[package]] -name = "crunchy" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" - [[package]] name = "crypto-common" version = "0.1.7" @@ -703,12 +694,6 @@ version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" -[[package]] -name = "fax" -version = "0.2.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "caf1079563223d5d59d83c85886a56e586cfd5c1a26292e971a0fa266531ac5a" - [[package]] name = "fdeflate" version = "0.3.7" @@ -926,17 +911,6 @@ dependencies = [ "polyval", ] -[[package]] -name = "half" -version = "2.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b" -dependencies = [ - "cfg-if", - "crunchy", - "zerocopy", -] - [[package]] name = "hashbrown" version = "0.17.1" @@ -1211,7 +1185,6 @@ dependencies = [ "moxcms", "num-traits", "png", - "tiff", "zune-core", "zune-jpeg", ] @@ -2524,20 +2497,6 @@ dependencies = [ "syn 3.0.3", ] -[[package]] -name = "tiff" -version = "0.11.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b63feaf3343d35b6ca4d50483f94843803b0f51634937cc2ec519fc32232bc52" -dependencies = [ - "fax", - "flate2", - "half", - "quick-error", - "weezl", - "zune-jpeg", -] - [[package]] name = "time" version = "0.3.55" @@ -3293,12 +3252,6 @@ dependencies = [ "rustls-pki-types", ] -[[package]] -name = "weezl" -version = "0.1.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88" - [[package]] name = "winapi-util" version = "0.1.11" diff --git a/crates/tinycomputer-accessibility/Cargo.toml b/crates/tinycomputer-accessibility/Cargo.toml index c2802e9b..7ea3d9f1 100644 --- a/crates/tinycomputer-accessibility/Cargo.toml +++ b/crates/tinycomputer-accessibility/Cargo.toml @@ -36,7 +36,7 @@ thiserror = { workspace = true } # Default-input-device probe behind `microphone-probe`. cpal = { workspace = true, optional = true } # Clipboard and synthetic keystrokes behind `paste`. -arboard = { version = "3", optional = true } +arboard = { version = "3", default-features = false, optional = true } enigo = { version = "0.3", optional = true } # The workspace lint set, except that `unsafe_code` is `deny` rather than