Remove unused crate imports

This patch removes unused crate imports reported by newer rust versions.

Some crates were only required for tests, some only for tests with
macro_import - these things were fixed with feature gates.
This commit is contained in:
Matthias Beyer 2017-08-29 17:21:52 +02:00
parent c987130cc1
commit ae5255c7c7
55 changed files with 7 additions and 111 deletions

View file

@ -14,13 +14,12 @@ repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
[dependencies]
semver = "0.5.1"
clap = ">=2.17"
log = "0.3"
version = "2.0.1"
toml = "^0.4"
toml-query = "0.1"
url = "1.2"
toml = "0.4"
toml-query = "0.3.0"
libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" }
libimagrt = { version = "0.4.0", path = "../../../lib/core/libimagrt" }

View file

@ -34,11 +34,10 @@
#[macro_use] extern crate log;
extern crate clap;
extern crate semver;
extern crate toml;
extern crate toml_query;
extern crate url;
#[macro_use] extern crate version;
#[cfg(test)] extern crate toml;
#[cfg(test)] extern crate toml_query;
extern crate libimagentrylink;
extern crate libimagrt;

View file

@ -14,12 +14,10 @@ repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
[dependencies]
semver = "0.5.1"
clap = ">=2.17"
log = "0.3"
version = "2.0.1"
libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" }
libimagrt = { version = "0.4.0", path = "../../../lib/core/libimagrt" }
libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" }
libimagentryref = { version = "0.4.0", path = "../../../lib/entry/libimagentryref" }

View file

@ -34,10 +34,8 @@
#[macro_use] extern crate log;
#[macro_use] extern crate version;
extern crate semver;
extern crate clap;
extern crate libimagstore;
extern crate libimagrt;
extern crate libimagentryref;
extern crate libimagerror;

View file

@ -17,7 +17,6 @@ homepage = "http://imag-pim.org"
clap = ">=2.17"
log = "0.3"
version = "2.0.1"
semver = "0.5"
toml = "^0.4"
libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore", features = ["verify"] }

View file

@ -34,7 +34,6 @@
extern crate clap;
#[macro_use] extern crate log;
extern crate semver;
extern crate toml;
#[macro_use] extern crate version;

View file

@ -17,8 +17,7 @@ homepage = "http://imag-pim.org"
clap = "2.*"
log = "0.3"
version = "2.0.1"
semver = "0.2"
toml = "^0.4"
toml = "0.4"
libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" }
libimagrt = { version = "0.4.0", path = "../../../lib/core/libimagrt" }

View file

@ -19,10 +19,10 @@
extern crate clap;
#[macro_use] extern crate log;
extern crate semver;
extern crate toml;
#[macro_use] extern crate version;
#[cfg(test)] extern crate toml;
extern crate libimagstore;
extern crate libimagrt;
extern crate libimagentrytag;

View file

@ -16,8 +16,6 @@ homepage = "http://imag-pim.org"
[dependencies]
clap = ">=2.17"
log = "0.3"
semver = "0.5"
toml = "^0.4"
version = "2.0.1"
libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" }

View file

@ -34,8 +34,6 @@
extern crate clap;
#[macro_use] extern crate log;
extern crate semver;
extern crate toml;
#[macro_use] extern crate version;
extern crate libimagentryview;

View file

@ -21,6 +21,5 @@ version = "2.0.1"
libimagrt = { version = "0.4.0", path = "../../../lib/core/libimagrt" }
libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" }
libimagbookmark = { version = "0.4.0", path = "../../../lib/domain/libimagbookmark" }
libimagentrylink = { version = "0.4.0", path = "../../../lib/entry/libimagentrylink" }
libimagentrytag = { version = "0.4.0", path = "../../../lib/entry/libimagentrytag" }
libimagutil = { version = "0.4.0", path = "../../../lib/etc/libimagutil" }

View file

@ -37,7 +37,6 @@ extern crate clap;
#[macro_use] extern crate version;
extern crate libimagbookmark;
extern crate libimagentrylink;
extern crate libimagentrytag;
extern crate libimagrt;
extern crate libimagerror;

View file

@ -10,12 +10,9 @@ readme = "../README.md"
license = "LGPL-2.1"
[dependencies]
semver = "0.5"
clap = "2.*"
log = "0.3"
version = "2.0.1"
toml = "0.4.*"
url = "1.2"
libimagrt = { version = "0.4.0", path = "../../../lib/core/libimagrt" }
libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" }

View file

@ -17,10 +17,7 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//
extern crate semver;
extern crate clap;
extern crate toml;
extern crate url;
#[macro_use] extern crate log;
#[macro_use] extern crate version;

View file

@ -14,7 +14,6 @@ repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
[dependencies]
semver = "0.2.1"
clap = ">=2.17"
log = "0.3"
version = "2.0.1"

View file

@ -19,7 +19,6 @@
extern crate clap;
#[macro_use] extern crate log;
extern crate semver;
#[macro_use] extern crate version;
extern crate itertools;

View file

@ -17,8 +17,6 @@ homepage = "http://imag-pim.org"
clap = "2.*"
log = "0.3"
version = "2.0.1"
semver = "0.2"
toml = "^0.4"
chrono = "^0.4"
filters = "0.1.1"
itertools = "0.6"
@ -27,4 +25,3 @@ libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore"
libimagrt = { version = "0.4.0", path = "../../../lib/core/libimagrt" }
libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" }
libimagtimetrack = { version = "0.4.0", path = "../../../lib/domain/libimagtimetrack" }
libimagutil = { version = "0.4.0", path = "../../../lib/etc/libimagutil" }

View file

@ -24,8 +24,6 @@ extern crate log;
extern crate version;
extern crate clap;
extern crate semver;
extern crate toml;
extern crate chrono;
extern crate filters;
extern crate itertools;
@ -34,7 +32,6 @@ extern crate libimagerror;
extern crate libimagstore;
extern crate libimagrt;
extern crate libimagtimetrack;
extern crate libimagutil;
mod cont;
mod day;

View file

@ -15,17 +15,12 @@ homepage = "http://imag-pim.org"
[dependencies]
clap = ">=2.17"
glob = "0.2.11"
log = "0.3.6"
semver = "0.5.1"
serde_json = "0.8.3"
task-hookrs = "0.2.2"
toml = "0.4.*"
toml-query = "0.3.*"
is-match = "0.1.*"
version = "2.0.1"
libimagrt = { version = "0.4.0", path = "../../../lib/core/libimagrt" }
libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" }
libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" }
libimagtodo = { version = "0.4.0", path = "../../../lib/domain/libimagtodo" }

View file

@ -18,19 +18,13 @@
//
extern crate clap;
extern crate glob;
#[macro_use] extern crate log;
extern crate serde_json;
extern crate semver;
extern crate toml;
extern crate toml_query;
#[macro_use] extern crate is_match;
#[macro_use] extern crate version;
extern crate task_hookrs;
extern crate libimagrt;
extern crate libimagstore;
extern crate libimagerror;
extern crate libimagtodo;

View file

@ -20,7 +20,6 @@ toml = "^0.4"
log = "0.3"
xdg-basedir = "1.0"
itertools = "0.5"
tempfile = "2.1"
ansi_term = "0.9"
is-match = "0.1"
toml-query = "0.3.0"

View file

@ -37,7 +37,6 @@
extern crate itertools;
#[cfg(unix)] extern crate xdg_basedir;
extern crate env_logger;
extern crate tempfile;
extern crate ansi_term;
extern crate clap;

View file

@ -14,7 +14,6 @@ repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
[dependencies]
fs2 = "0.4"
glob = "0.2.11"
lazy_static = "0.2.*"
log = "0.3"
@ -22,9 +21,7 @@ regex = "0.2"
semver = "0.5"
toml = "^0.4"
version = "2.0.1"
crossbeam = "0.2.*"
walkdir = "1.0.*"
itertools = "0.6.*"
is-match = "0.1"
serde = "1.0"
serde_json = "1.0"

View file

@ -35,18 +35,14 @@
#[macro_use] extern crate log;
#[macro_use] extern crate version;
extern crate fs2;
extern crate glob;
#[macro_use] extern crate lazy_static;
extern crate regex;
extern crate toml;
#[cfg(test)] extern crate tempdir;
extern crate semver;
extern crate crossbeam;
extern crate walkdir;
extern crate itertools;
#[macro_use] extern crate is_match;
extern crate serde;
extern crate serde_json;
#[macro_use] extern crate serde_derive;

View file

@ -14,7 +14,6 @@ repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
[dependencies]
semver = "0.5"
url = "1.2"
regex = "0.1"

View file

@ -33,7 +33,6 @@
while_true,
)]
extern crate semver;
extern crate url;
extern crate regex;

View file

@ -17,7 +17,6 @@ homepage = "http://imag-pim.org"
log = "0.3"
toml = "0.4.*"
toml-query = "0.3.*"
semver = "0.5"
libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" }
libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" }

View file

@ -36,7 +36,6 @@
extern crate toml;
extern crate toml_query;
#[macro_use] extern crate log;
extern crate semver;
#[macro_use] extern crate libimagstore;
#[macro_use] extern crate libimagerror;

View file

@ -16,15 +16,12 @@ homepage = "http://imag-pim.org"
[dependencies]
chrono = "0.4"
log = "0.3"
semver = "0.5"
toml = "0.4.*"
toml-query = "0.3.*"
regex = "0.1"
itertools = "0.5"
libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" }
libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" }
libimagrt = { version = "0.4.0", path = "../../../lib/core/libimagrt" }
libimagutil = { version = "0.4.0", path = "../../../lib/etc/libimagutil" }
libimagentryedit = { version = "0.4.0", path = "../../../lib/entry/libimagentryedit" }
libimagentryview = { version = "0.4.0", path = "../../../lib/entry/libimagentryview" }

View file

@ -35,10 +35,8 @@
extern crate chrono;
#[macro_use] extern crate log;
extern crate semver;
extern crate toml;
extern crate toml_query;
extern crate regex;
extern crate itertools;
#[macro_use] extern crate libimagstore;
@ -46,7 +44,6 @@ extern crate itertools;
extern crate libimagentryedit;
extern crate libimagentryview;
extern crate libimagrt;
extern crate libimagutil;
module_entry_path_mod!("diary");

View file

@ -16,8 +16,6 @@ homepage = "http://imag-pim.org"
[dependencies]
log = "0.3"
email = "0.0.17"
semver = "0.5"
toml = "0.4.*"
filters = "0.1.*"
libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" }

View file

@ -35,8 +35,6 @@
#[macro_use] extern crate log;
extern crate email;
extern crate semver;
extern crate toml;
extern crate filters;
#[macro_use] extern crate libimagerror;

View file

@ -14,7 +14,6 @@ repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
[dependencies]
semver = "0.5"
log = "0.3"
toml = "^0.4"
toml-query = "0.3.0"
@ -23,4 +22,3 @@ libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore"
libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" }
libimagrt = { version = "0.4.0", path = "../../../lib/core/libimagrt" }
libimagentryedit = { version = "0.4.0", path = "../../../lib/entry/libimagentryedit" }
libimagentrytag = { version = "0.4.0", path = "../../../lib/entry/libimagentrytag" }

View file

@ -34,7 +34,6 @@
)]
#[macro_use] extern crate log;
extern crate semver;
extern crate toml;
extern crate toml_query;
@ -42,7 +41,6 @@ extern crate libimagrt;
#[macro_use] extern crate libimagstore;
#[macro_use] extern crate libimagerror;
extern crate libimagentryedit;
extern crate libimagentrytag;
module_entry_path_mod!("notes");

View file

@ -14,15 +14,12 @@ repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
[dependencies]
semver = "0.2"
task-hookrs = "0.2.2"
uuid = "0.3"
toml = "0.4.*"
toml-query = "0.3.*"
is-match = "0.1.*"
log = "0.3"
serde_json = "0.8"
libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" }
libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" }
libimagutil = { version = "0.4.0", path = "../../../lib/etc/libimagutil" }

View file

@ -33,17 +33,14 @@
while_true,
)]
extern crate semver;
extern crate uuid;
extern crate toml;
extern crate toml_query;
#[macro_use] extern crate is_match;
#[macro_use] extern crate log;
extern crate serde_json;
#[macro_use] extern crate libimagstore;
#[macro_use] extern crate libimagerror;
extern crate libimagutil;
extern crate task_hookrs;
module_entry_path_mod!("todo");

View file

@ -10,7 +10,6 @@ readme = "../README.md"
license = "LGPL-2.1"
[dependencies]
uuid = { version = "0.3.1", features = ["v4"] }
lazy_static = "0.1.15"
toml = "^0.4"
toml-query = "0.3.0"
@ -19,4 +18,3 @@ libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore"
libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" }
libimagnotes = { version = "0.4.0", path = "../../../lib/domain/libimagnotes" }
libimagentrylink = { version = "0.4.0", path = "../../../lib/entry/libimagentrylink" }
libimagutil = { version = "0.4.0", path = "../../../lib/etc/libimagutil" }

View file

@ -33,7 +33,6 @@
while_true,
)]
extern crate uuid;
extern crate toml;
extern crate toml_query;
@ -41,7 +40,6 @@ extern crate toml_query;
extern crate libimagstore;
extern crate libimagentrylink;
extern crate libimagnotes;
extern crate libimagutil;
pub mod annotateable;
pub mod annotation_fetcher;

View file

@ -21,5 +21,4 @@ toml = "0.4"
libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" }
libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" }
libimagutil = { version = "0.4.0", path = "../../../lib/etc/libimagutil" }

View file

@ -40,7 +40,6 @@ extern crate toml;
#[macro_use] extern crate libimagerror;
extern crate libimagstore;
extern crate libimagutil;
pub mod datepath;
pub mod datetime;

View file

@ -34,7 +34,6 @@
)]
extern crate filters;
extern crate itertools;
extern crate regex;
extern crate semver;
extern crate toml;

View file

@ -17,7 +17,6 @@ homepage = "http://imag-pim.org"
itertools = "0.5"
log = "0.3"
toml = "^0.4"
semver = "0.5"
url = "1.2"
rust-crypto = "0.2"
env_logger = "0.3"

View file

@ -37,7 +37,6 @@ extern crate itertools;
#[macro_use] extern crate log;
extern crate toml;
extern crate toml_query;
extern crate semver;
extern crate url;
extern crate crypto;
#[macro_use] extern crate is_match;

View file

@ -16,7 +16,6 @@ homepage = "http://imag-pim.org"
[dependencies]
clap = ">=2.17"
log = "0.3"
toml = "^0.4"
prettytable-rs = "0.6.*"
libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" }

View file

@ -35,7 +35,6 @@
extern crate clap;
#[macro_use] extern crate log;
extern crate toml;
extern crate prettytable;
extern crate libimagstore;

View file

@ -16,7 +16,6 @@ homepage = "http://imag-pim.org"
[dependencies]
log = "0.3"
hoedown = "5.0.0"
crossbeam = "0.2"
url = "1.2"
libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" }

View file

@ -33,7 +33,6 @@
while_true,
)]
extern crate crossbeam;
extern crate hoedown;
extern crate url;
extern crate libimagstore;

View file

@ -17,13 +17,10 @@ homepage = "http://imag-pim.org"
itertools = "0.5"
log = "0.3"
rust-crypto = "0.2"
semver = "0.5"
toml = "^0.4"
version = "2.0.1"
walkdir = "1.0.*"
toml-query = "0.3.0"
libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" }
libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" }
libimagentrylist = { version = "0.4.0", path = "../../../lib/entry/libimagentrylist" }
libimagutil = { version = "0.4.0", path = "../../../lib/etc/libimagutil" }

View file

@ -36,15 +36,12 @@
#[macro_use] extern crate log;
extern crate crypto;
extern crate itertools;
extern crate semver;
extern crate toml;
extern crate toml_query;
extern crate version;
extern crate walkdir;
#[macro_use] extern crate libimagstore;
#[macro_use] extern crate libimagerror;
extern crate libimagutil;
extern crate libimagentrylist;
module_entry_path_mod!("ref");

View file

@ -25,4 +25,3 @@ toml-query = "0.3.0"
libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" }
libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" }
libimagutil = { version = "0.4.0", path = "../../../lib/etc/libimagutil" }

View file

@ -44,7 +44,6 @@ extern crate filters;
extern crate libimagstore;
#[macro_use] extern crate libimagerror;
extern crate libimagutil;
pub mod error;
pub mod exec;

View file

@ -16,7 +16,6 @@ homepage = "http://imag-pim.org"
[dependencies]
log = "0.3"
toml = "^0.4"
glob = "0.2"
libimagrt = { version = "0.4.0", path = "../../../lib/core/libimagrt" }
libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" }

View file

@ -33,7 +33,6 @@
while_true,
)]
extern crate glob;
extern crate toml;
extern crate libimagstore;

View file

@ -21,10 +21,6 @@ lazy_static = "0.2.*"
log = "0.3"
regex = "0.2"
toml = "^0.4"
spinner = "0.4"
rustyline = "1.0"
libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" }
libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" }
libimagutil = { version = "0.4.0", path = "../../../lib/etc/libimagutil" }
libimagentryfilter = { version = "0.4.0", path = "../../../lib/entry/libimagentryfilter" }

View file

@ -33,18 +33,14 @@
while_true,
)]
extern crate spinner;
extern crate interactor;
extern crate ansi_term;
#[macro_use] extern crate lazy_static;
extern crate regex;
extern crate clap;
extern crate toml;
extern crate rustyline;
extern crate libimagentryfilter;
extern crate libimagstore;
extern crate libimagutil;
#[macro_use] extern crate libimagerror;
pub mod ask;