From a9d68ea859514778db830dfa2765239e3ddd0fad Mon Sep 17 00:00:00 2001 From: Bauke Date: Thu, 22 Sep 2022 18:45:07 +0200 Subject: [PATCH] Remove indicatif. --- Cargo.lock | 54 -------------------------------------------------- Cargo.toml | 1 - source/main.rs | 5 ----- 3 files changed, 60 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1797fb9..e037f22 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -160,20 +160,6 @@ dependencies = [ "tracing-error", ] -[[package]] -name = "console" -version = "0.15.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89eab4d20ce20cea182308bca13088fecea9c05f6776cf287205d41a0ed3c847" -dependencies = [ - "encode_unicode", - "libc", - "once_cell", - "terminal_size", - "unicode-width", - "winapi", -] - [[package]] name = "crc32fast" version = "1.3.2" @@ -183,12 +169,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "encode_unicode" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" - [[package]] name = "eyre" version = "0.6.8" @@ -295,17 +275,6 @@ dependencies = [ "hashbrown", ] -[[package]] -name = "indicatif" -version = "0.17.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfddc9561e8baf264e0e45e197fd7696320026eb10a8180340debc27b18f535b" -dependencies = [ - "console", - "number_prefix", - "unicode-width", -] - [[package]] name = "itoa" version = "1.0.3" @@ -363,12 +332,6 @@ dependencies = [ "adler", ] -[[package]] -name = "number_prefix" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" - [[package]] name = "object" version = "0.29.0" @@ -579,7 +542,6 @@ version = "0.1.0" dependencies = [ "clap", "color-eyre", - "indicatif", "opml", "regex", "serde", @@ -613,16 +575,6 @@ dependencies = [ "winapi-util", ] -[[package]] -name = "terminal_size" -version = "0.1.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "633c1a546cee861a1a6d0dc69ebeca693bf4296661ba7852b9d21d159e0506df" -dependencies = [ - "libc", - "winapi", -] - [[package]] name = "textwrap" version = "0.15.1" @@ -736,12 +688,6 @@ dependencies = [ "tinyvec", ] -[[package]] -name = "unicode-width" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0edd1e5b14653f783770bce4a4dabb4a5108a5370a5f5d8cfe8710c361f6c8b" - [[package]] name = "untrusted" version = "0.7.1" diff --git a/Cargo.toml b/Cargo.toml index 0f07bbf..a1e4871 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,6 @@ path = "source/main.rs" [dependencies] color-eyre = "0.6.2" -indicatif = "0.17.1" opml = "1.1.4" regex = "1.6.0" serde = "1.0.144" diff --git a/source/main.rs b/source/main.rs index e06ae05..ca6950d 100644 --- a/source/main.rs +++ b/source/main.rs @@ -12,7 +12,6 @@ use std::{thread::sleep, time::Duration}; use { clap::Parser, color_eyre::{install, Result}, - indicatif::{ProgressBar, ProgressStyle}, regex::Regex, serde::Deserialize, serde_json::Value, @@ -169,9 +168,6 @@ fn main() -> Result<()> { } if args.verify { - let progress = ProgressBar::new(potential_feeds.len().try_into()?) - .with_style(ProgressStyle::with_template("Verifying {pos}/{len} {bar}")?); - let verify_feed = |url: &str| -> Result<_> { let response = ureq_agent.get(&url).call()?; sleep(timeout); @@ -206,7 +202,6 @@ fn main() -> Result<()> { }; feeds_to_output.push(verified_feed); - progress.inc(1); } } else { feeds_to_output.append(&mut potential_feeds);