chore: drop unused crates/tui/src/ui.rs + indicatif dep

`crates/tui/src/ui.rs` exposed two `#[allow(dead_code)]` helpers
(`spinner`, `progress_bar`) that nothing in the workspace called.
The `indicatif` dep was only there to back those helpers. Delete
the module file, remove `mod ui;` from `main.rs`, and drop
`indicatif` from the TUI crate's Cargo.toml.

Cargo.lock loses 4 crates (`indicatif`, `console`, `encode_unicode`,
`unit-prefix`), trimming compile time and binary size. Note that the
real TUI rendering module lives at `crates/tui/src/tui/ui.rs` and is
unaffected — the deleted file was a separate module that hadn't
been wired into anything.
This commit is contained in:
Hunter Bown
2026-05-03 08:07:06 -05:00
parent d9701c1dde
commit 311482568f
4 changed files with 0 additions and 71 deletions
Generated
-39
View File
@@ -806,19 +806,6 @@ dependencies = [
"crossbeam-utils",
]
[[package]]
name = "console"
version = "0.16.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "03e45a4a8926227e4197636ba97a9fc9b00477e9f4bd711395687c5f0734bec4"
dependencies = [
"encode_unicode",
"libc",
"once_cell",
"unicode-width 0.2.0",
"windows-sys 0.61.2",
]
[[package]]
name = "convert_case"
version = "0.6.0"
@@ -1252,7 +1239,6 @@ dependencies = [
"futures-util",
"ignore",
"image",
"indicatif",
"libc",
"multimap",
"pdf-extract",
@@ -1557,12 +1543,6 @@ dependencies = [
"log",
]
[[package]]
name = "encode_unicode"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0"
[[package]]
name = "encoding_rs"
version = "0.8.35"
@@ -2467,19 +2447,6 @@ dependencies = [
"serde_core",
]
[[package]]
name = "indicatif"
version = "0.18.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9375e112e4b463ec1b1c6c011953545c65a30164fbab5b581df32b3abf0dcb88"
dependencies = [
"console",
"portable-atomic",
"unicode-width 0.2.0",
"unit-prefix",
"web-time",
]
[[package]]
name = "indoc"
version = "2.0.7"
@@ -5357,12 +5324,6 @@ version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
[[package]]
name = "unit-prefix"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "81e544489bf3d8ef66c953931f56617f423cd4b5494be343d9b9d3dda037b9a3"
[[package]]
name = "untrusted"
version = "0.9.0"
-1
View File
@@ -35,7 +35,6 @@ crossterm = "0.28"
dotenvy = "0.15.7"
dirs = "6.0.0"
futures-util = "0.3.31"
indicatif = "0.18.0"
ratatui = "0.29"
regex = "1.11"
reqwest = { version = "0.13.1", default-features = false, features = ["blocking", "json", "stream", "multipart", "native-tls", "http2"] }
-1
View File
@@ -61,7 +61,6 @@ mod task_manager;
mod test_support;
mod tools;
mod tui;
mod ui;
mod utils;
mod working_set;
mod workspace_trust;
-30
View File
@@ -1,30 +0,0 @@
//! Terminal UI helpers (progress bars, spinners).
use indicatif::{ProgressBar, ProgressStyle};
/// Create a spinner progress indicator.
#[must_use]
#[allow(dead_code)]
pub fn spinner(message: &str) -> ProgressBar {
let spinner = ProgressBar::new_spinner();
spinner.set_message(message.to_string());
spinner.set_style(
ProgressStyle::with_template("{spinner} {msg}")
.unwrap_or_else(|_| ProgressStyle::default_spinner()),
);
spinner.enable_steady_tick(std::time::Duration::from_millis(120));
spinner
}
/// Create a progress bar for byte-based transfers.
#[must_use]
#[allow(dead_code)]
pub fn progress_bar(total: u64, message: &str) -> ProgressBar {
let bar = ProgressBar::new(total);
bar.set_message(message.to_string());
bar.set_style(
ProgressStyle::with_template("{msg} [{bar:40.cyan/blue}] {bytes}/{total_bytes} ({eta})")
.unwrap_or_else(|_| ProgressStyle::default_bar()),
);
bar
}