Skip to content

Commit

Permalink
Remove tracing-indicatif dependency (#3816)
Browse files Browse the repository at this point in the history
## Summary

It's only used in `uv-dev`; can restore later if important.
  • Loading branch information
charliermarsh committed May 24, 2024
1 parent dd27f2f commit ce38fcc
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 58 deletions.
47 changes: 0 additions & 47 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ tokio-util = { version = "0.7.10", features = ["compat"] }
toml = { version = "0.8.12" }
tracing = { version = "0.1.40" }
tracing-durations-export = { version = "0.2.0", features = ["plot"] }
tracing-indicatif = { version = "0.3.6" }
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "json", "registry"] }
tracing-tree = { version = "0.3.0" }
unicode-width = { version = "0.1.11" }
Expand Down
1 change: 0 additions & 1 deletion crates/uv-dev/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ tagu = { version = "0.1.6" }
tokio = { workspace = true }
tracing = { workspace = true }
tracing-durations-export = { workspace = true, features = ["plot"] }
tracing-indicatif = { workspace = true }
tracing-subscriber = { workspace = true }
walkdir = { workspace = true }

Expand Down
9 changes: 0 additions & 9 deletions crates/uv-dev/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::env;
use std::io::IsTerminal;
use std::path::PathBuf;
use std::process::ExitCode;
use std::time::Instant;
Expand All @@ -11,7 +10,6 @@ use owo_colors::OwoColorize;
use tracing::{debug, instrument};
use tracing_durations_export::plot::PlotConfig;
use tracing_durations_export::DurationsLayerBuilder;
use tracing_indicatif::IndicatifLayer;
use tracing_subscriber::layer::SubscriberExt;
use tracing_subscriber::util::SubscriberInitExt;
use tracing_subscriber::EnvFilter;
Expand Down Expand Up @@ -116,11 +114,6 @@ async fn main() -> ExitCode {
(None, None)
};

let indicatif_layer = IndicatifLayer::new();
let indicatif_compatible_writer_layer = tracing_subscriber::fmt::layer()
.with_writer(indicatif_layer.get_stderr_writer())
.with_ansi(std::io::stderr().is_terminal())
.with_target(false);
let filter_layer = EnvFilter::try_from_default_env().unwrap_or_else(|_| {
EnvFilter::builder()
// Show only the important spans
Expand All @@ -130,8 +123,6 @@ async fn main() -> ExitCode {
tracing_subscriber::registry()
.with(duration_layer)
.with(filter_layer)
.with(indicatif_compatible_writer_layer)
.with(indicatif_layer)
.init();

let start = Instant::now();
Expand Down

0 comments on commit ce38fcc

Please sign in to comment.