From d4ec386e38820a633961a1a9298a94af694c57f4 Mon Sep 17 00:00:00 2001 From: Justin Chung Date: Sat, 3 Oct 2026 10:46:45 -0400 Subject: [PATCH] build(deps): remove dependencies nothing references Drop shell-words, etcetera and owo-colors, the insta and predicates dev-dependencies, and clap's cargo feature: no source, test or build script uses them. clap_complete stays for the planned completions. The packages list now names anstyle alone for styling. --- CLAUDE.md | 4 +-- Cargo.lock | 71 +----------------------------------------------------- Cargo.toml | 9 +------ 3 files changed, 4 insertions(+), 80 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 1a35f053..faf51420 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -79,8 +79,8 @@ wrong even if it passes CI. shell-startup path. - **inquire** — interactive prompts for `init` and confirmations. There is no TUI beyond these. -- **similar** — diffs for `plan`. **anstyle / owo-colors** — styling that - respects `NO_COLOR`. **indicatif** — progress during `apply` only. +- **similar** — diffs for `plan`. **anstyle** — styling that respects + `NO_COLOR`. **indicatif** — progress during `apply` only. - **age** — secrets, in-process, so the static binary needs no external `age`/`sops`. Default identity is the user's existing ssh ed25519 key. - **rmp-serde** — MessagePack for machine-owned state (ledger, fingerprints, diff --git a/Cargo.lock b/Cargo.lock index 3d430bda..5a619569 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -329,19 +329,14 @@ dependencies = [ "clap", "clap_complete", "color-eyre", - "etcetera", "eyre", "indicatif", "inquire", - "insta", - "owo-colors", - "predicates", "rmp-serde", "rustix", "serde", "sha2 0.11.0", - "shell-words", - "similar 3.2.0", + "similar", "tempfile", "thiserror 2.0.20", "toml_edit", @@ -770,16 +765,6 @@ dependencies = [ "windows-sys", ] -[[package]] -name = "etcetera" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de48cc4d1c1d97a20fd819def54b890cadde72ed3ad0c614822a0a433361be96" -dependencies = [ - "cfg-if", - "windows-sys", -] - [[package]] name = "eyre" version = "0.6.14" @@ -822,15 +807,6 @@ dependencies = [ "toml", ] -[[package]] -name = "float-cmp" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b09cf3155332e944990140d967ff5eceb70df778b34f77d8075db46e4704e6d8" -dependencies = [ - "num-traits", -] - [[package]] name = "fluent" version = "0.17.0" @@ -1220,18 +1196,6 @@ dependencies = [ "unicode-width", ] -[[package]] -name = "insta" -version = "1.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86f0f8fee8c926415c58d6ae43a08523a26faccb2323f5e6b644fe7dd4ef6b82" -dependencies = [ - "console", - "once_cell", - "similar 2.7.0", - "tempfile", -] - [[package]] name = "intl-memoizer" version = "0.5.3" @@ -1414,12 +1378,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "normalize-line-endings" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61807f77802ff30975e01f4f071c8ba10c022052f98b3294119f3e615d13e5be" - [[package]] name = "nu-ansi-term" version = "0.50.3" @@ -1643,10 +1601,7 @@ checksum = "ada8f2932f28a27ee7b70dd6c1c39ea0675c55a36879ab92f3a715eaa1e63cfe" dependencies = [ "anstyle", "difflib", - "float-cmp", - "normalize-line-endings", "predicates-core", - "regex", ] [[package]] @@ -1759,18 +1714,6 @@ dependencies = [ "bitflags", ] -[[package]] -name = "regex" -version = "1.13.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" -dependencies = [ - "aho-corasick", - "memchr", - "regex-automata", - "regex-syntax", -] - [[package]] name = "regex-automata" version = "0.4.18" @@ -2051,12 +1994,6 @@ dependencies = [ "lazy_static", ] -[[package]] -name = "shell-words" -version = "1.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc6fe69c597f9c37bfeeeeeb33da3530379845f10be461a66d16d03eca2ded77" - [[package]] name = "signal-hook" version = "0.3.18" @@ -2098,12 +2035,6 @@ dependencies = [ "rand_core", ] -[[package]] -name = "similar" -version = "2.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbbb5d9659141646ae647b42fe094daf6c6192d1620870b449d9557f748b2daa" - [[package]] name = "similar" version = "3.2.0" diff --git a/Cargo.toml b/Cargo.toml index 5835b8d2..2326ada8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,13 +46,12 @@ unsafe_code = "forbid" [dependencies] # CLI surface + dynamic completions (values come from `bx __complete`). -clap = { version = "4.6.6", features = ["derive", "cargo", "wrap_help"] } +clap = { version = "4.6.6", features = ["derive", "wrap_help"] } clap_complete = "4.6.9" # Interactive prompts for `init` and every confirmation. There is no TUI. inquire = "0.9.4" # Rendering: diffs for `plan`, colour, progress. similar = "3.2.0" -owo-colors = "4.4.0" anstyle = "1.0.14" indicatif = "0.18.6" # Secrets: age in-process, so the static binary needs no external `age`/`sops`. @@ -68,12 +67,8 @@ serde = { version = "1.0.229", features = ["derive"] } # Hand-authored config (bx.toml, modules/*.toml, local.toml) and surgical, # comment-preserving edits to other tools' TOML — cargo, mise, uv. toml_edit = { version = "0.25.14", features = ["serde"] } -# Quoting and splitting when generating shell fragments and reading tool output. -shell-words = "1.1.1" # Content addressing for the restore store, and activation-cache fingerprints. sha2 = "0.11.0" -# XDG base directories, resolved from the environment rather than assumed. -etcetera = "0.11.0" # Atomic writes: temp file in the destination directory, fsync, rename. tempfile = "3.27.0" # File modes, fsync, and the advisory lock on the state directory. @@ -86,8 +81,6 @@ tracing-subscriber = { version = "0.3.23", features = ["env-filter"] } [dev-dependencies] assert_cmd = "2.2.2" -insta = "1.48.0" -predicates = "3.1.4" [profile.release] # bx is a short-lived, frequently-installed binary fetched over the network: