From b3c4de320b7ab7c917d49f59bea597594af8c73e Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Sat, 20 Jan 2018 07:41:09 +0200 Subject: [PATCH] Remove dead dependancies. --- Cargo.lock | 6 ------ hammond-downloader/Cargo.toml | 3 --- hammond-downloader/src/lib.rs | 6 +----- hammond-gtk/Cargo.toml | 6 ------ hammond-gtk/src/main.rs | 9 +-------- 5 files changed, 2 insertions(+), 28 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 487a18f..a0389d7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -644,12 +644,10 @@ dependencies = [ "glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", "hammond-data 0.1.0", "hyper 0.11.12 (registry+https://github.com/rust-lang/crates.io-index)", - "hyper-tls 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", "mime_guess 1.8.3 (registry+https://github.com/rust-lang/crates.io-index)", "reqwest 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)", "tempdir 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-core 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -666,16 +664,12 @@ dependencies = [ "hammond-data 0.1.0", "hammond-downloader 0.1.0", "humansize 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "hyper 0.11.12 (registry+https://github.com/rust-lang/crates.io-index)", - "hyper-tls 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", "loggerv 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", "open 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "rayon 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", - "regex 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", "send-cell 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-core 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] diff --git a/hammond-downloader/Cargo.toml b/hammond-downloader/Cargo.toml index 641a4d5..10cedcc 100644 --- a/hammond-downloader/Cargo.toml +++ b/hammond-downloader/Cargo.toml @@ -16,6 +16,3 @@ glob = "0.2.11" [dependencies.hammond-data] path = "../hammond-data" -[dev-dependencies] -tokio-core = "0.1.12" -hyper-tls = "0.1.2" diff --git a/hammond-downloader/src/lib.rs b/hammond-downloader/src/lib.rs index 8612c72..82be1f6 100644 --- a/hammond-downloader/src/lib.rs +++ b/hammond-downloader/src/lib.rs @@ -1,4 +1,5 @@ #![recursion_limit = "1024"] +#![deny(unused_extern_crates, unused)] #[macro_use] extern crate error_chain; @@ -13,8 +14,3 @@ extern crate tempdir; pub mod downloader; pub mod errors; - -#[cfg(test)] -extern crate hyper_tls; -#[cfg(test)] -extern crate tokio_core; diff --git a/hammond-gtk/Cargo.toml b/hammond-gtk/Cargo.toml index 78ac267..cbbaa1b 100644 --- a/hammond-gtk/Cargo.toml +++ b/hammond-gtk/Cargo.toml @@ -18,7 +18,6 @@ log = "0.3.8" loggerv = "0.6.0" open = "1.2.1" rayon = "0.9.0" -regex = "0.2.3" send-cell = "0.1.2" [dependencies.gtk] @@ -30,8 +29,3 @@ path = "../hammond-data" [dependencies.hammond-downloader] path = "../hammond-downloader" - -[dev-dependencies] -hyper-tls = "0.1.2" -tokio-core = "0.1.12" -hyper = "0.11.12" diff --git a/hammond-gtk/src/main.rs b/hammond-gtk/src/main.rs index fdfd53a..f1c97fa 100644 --- a/hammond-gtk/src/main.rs +++ b/hammond-gtk/src/main.rs @@ -1,4 +1,5 @@ #![cfg_attr(feature = "cargo-clippy", allow(clone_on_ref_ptr, needless_pass_by_value))] +#![deny(unused_extern_crates, unused)] extern crate gdk; extern crate gdk_pixbuf; @@ -17,17 +18,9 @@ extern crate lazy_static; extern crate log; extern crate loggerv; extern crate open; -extern crate regex; extern crate send_cell; // extern crate rayon; -#[cfg(test)] -extern crate hyper; -#[cfg(test)] -extern crate hyper_tls; -#[cfg(test)] -extern crate tokio_core; - // use rayon::prelude::*; use log::LogLevel;