Merge pull request #1032 from matthiasbeyer/libimagstore/remove-unused

Remove unused imports, etc
This commit is contained in:
Matthias Beyer 2017-08-31 12:51:29 +02:00 committed by GitHub
commit 24bcc53087
73 changed files with 51 additions and 187 deletions

View file

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

View file

@ -34,21 +34,23 @@
#[macro_use] extern crate log; #[macro_use] extern crate log;
extern crate clap; extern crate clap;
extern crate semver;
extern crate toml;
extern crate toml_query;
extern crate url; extern crate url;
#[macro_use] extern crate version; #[macro_use] extern crate version;
#[cfg(test)] extern crate toml;
#[cfg(test)] extern crate toml_query;
extern crate libimagentrylink; extern crate libimagentrylink;
extern crate libimagrt; extern crate libimagrt;
extern crate libimagstore; extern crate libimagstore;
extern crate libimagerror; extern crate libimagerror;
#[allow(unused_imports)] #[cfg(test)]
#[macro_use] #[macro_use]
extern crate libimagutil; extern crate libimagutil;
#[cfg(not(test))]
extern crate libimagutil;
use std::ops::Deref; use std::ops::Deref;
use libimagrt::runtime::Runtime; use libimagrt::runtime::Runtime;
@ -374,7 +376,11 @@ mod tests {
} }
fn get_entry_links<'a>(entry: &'a FileLockEntry<'a>) -> TomlQueryResult<&'a Value> { fn get_entry_links<'a>(entry: &'a FileLockEntry<'a>) -> TomlQueryResult<&'a Value> {
entry.get_header().read(&"imag.links".to_owned()) match entry.get_header().read(&"imag.links".to_owned()) {
Err(e) => Err(e),
Ok(Some(v)) => Ok(v),
Ok(None) => panic!("Didn't find 'imag.links' in {:?}", entry),
}
} }
fn links_toml_value<'a, I: IntoIterator<Item = &'static str>>(links: I) -> Value { fn links_toml_value<'a, I: IntoIterator<Item = &'static str>>(links: I) -> Value {

View file

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

View file

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

View file

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

View file

@ -147,12 +147,12 @@ fn create_with_content_and_header(rt: &Runtime,
.map_dbg_err(|e| format!("Error in Store::create(): {:?}", e)) .map_dbg_err(|e| format!("Error in Store::create(): {:?}", e))
.map(|mut element| { .map(|mut element| {
{ {
let mut e_content = element.get_content_mut(); let e_content = element.get_content_mut();
*e_content = content; *e_content = content;
debug!("New content set"); debug!("New content set");
} }
{ {
let mut e_header = element.get_header_mut(); let e_header = element.get_header_mut();
*e_header = header; *e_header = header;
debug!("New header set"); debug!("New header set");
} }

View file

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

View file

@ -41,7 +41,7 @@ pub fn update(rt: &Runtime) {
rt.store() rt.store()
.retrieve(path) .retrieve(path)
.map(|mut locked_e| { .map(|mut locked_e| {
let mut e = locked_e.deref_mut(); let e = locked_e.deref_mut();
scmd.value_of("content") scmd.value_of("content")
.map(|new_content| { .map(|new_content| {

View file

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

View file

@ -19,18 +19,22 @@
extern crate clap; extern crate clap;
#[macro_use] extern crate log; #[macro_use] extern crate log;
extern crate semver;
extern crate toml;
#[macro_use] extern crate version; #[macro_use] extern crate version;
#[cfg(test)] extern crate toml;
extern crate libimagstore; extern crate libimagstore;
extern crate libimagrt; extern crate libimagrt;
extern crate libimagentrytag; extern crate libimagentrytag;
extern crate libimagerror; extern crate libimagerror;
#[cfg(test)]
#[macro_use] #[macro_use]
extern crate libimagutil; extern crate libimagutil;
#[cfg(not(test))]
extern crate libimagutil;
#[cfg(test)] #[cfg(test)]
extern crate toml_query; extern crate toml_query;

View file

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

View file

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

View file

@ -21,6 +21,5 @@ version = "2.0.1"
libimagrt = { version = "0.4.0", path = "../../../lib/core/libimagrt" } libimagrt = { version = "0.4.0", path = "../../../lib/core/libimagrt" }
libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" } libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" }
libimagbookmark = { version = "0.4.0", path = "../../../lib/domain/libimagbookmark" } 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" } libimagentrytag = { version = "0.4.0", path = "../../../lib/entry/libimagentrytag" }
libimagutil = { version = "0.4.0", path = "../../../lib/etc/libimagutil" } libimagutil = { version = "0.4.0", path = "../../../lib/etc/libimagutil" }

View file

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

View file

@ -10,12 +10,9 @@ readme = "../README.md"
license = "LGPL-2.1" license = "LGPL-2.1"
[dependencies] [dependencies]
semver = "0.5"
clap = "2.*" clap = "2.*"
log = "0.3" log = "0.3"
version = "2.0.1" version = "2.0.1"
toml = "0.4.*"
url = "1.2"
libimagrt = { version = "0.4.0", path = "../../../lib/core/libimagrt" } libimagrt = { version = "0.4.0", path = "../../../lib/core/libimagrt" }
libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" } 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 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
// //
extern crate semver;
extern crate clap; extern crate clap;
extern crate toml;
extern crate url;
#[macro_use] extern crate log; #[macro_use] extern crate log;
#[macro_use] extern crate version; #[macro_use] extern crate version;
@ -35,7 +32,6 @@ use libimagmail::mail::Mail;
use libimagentryref::reference::Ref; use libimagentryref::reference::Ref;
use libimagrt::runtime::Runtime; use libimagrt::runtime::Runtime;
use libimagrt::setup::generate_runtime_setup; use libimagrt::setup::generate_runtime_setup;
use libimagutil::debug_result::*;
use libimagutil::info_result::*; use libimagutil::info_result::*;
mod ui; mod ui;
@ -65,7 +61,7 @@ fn import_mail(rt: &Runtime) {
let scmd = rt.cli().subcommand_matches("import-mail").unwrap(); let scmd = rt.cli().subcommand_matches("import-mail").unwrap();
let path = scmd.value_of("path").unwrap(); // enforced by clap let path = scmd.value_of("path").unwrap(); // enforced by clap
Mail::import_from_path(rt.store(), path) let _ = Mail::import_from_path(rt.store(), path)
.map_err_trace() .map_err_trace()
.map_info_str("Ok"); .map_info_str("Ok");
} }
@ -74,11 +70,6 @@ fn list(rt: &Runtime) {
use libimagmail::error::MailErrorKind as MEK; use libimagmail::error::MailErrorKind as MEK;
use libimagmail::error::MapErrInto; use libimagmail::error::MapErrInto;
let scmd = rt.cli().subcommand_matches("list").unwrap();
let do_check_dead = scmd.is_present("check-dead");
let do_check_changed = scmd.is_present("check-changed");
let do_check_changed_content = scmd.is_present("check-changed-content");
let do_check_changed_permiss = scmd.is_present("check-changed-permissions");
let store = rt.store(); let store = rt.store();
let iter = match store.retrieve_for_module("ref") { let iter = match store.retrieve_for_module("ref") {
@ -144,7 +135,7 @@ fn list(rt: &Runtime) {
} }
fn mail_store(rt: &Runtime) { fn mail_store(rt: &Runtime) {
let scmd = rt.cli().subcommand_matches("mail-store").unwrap(); let _ = rt.cli().subcommand_matches("mail-store").unwrap();
error!("This feature is currently not implemented."); error!("This feature is currently not implemented.");
unimplemented!() unimplemented!()
} }

View file

@ -17,7 +17,7 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
// //
use clap::{Arg, ArgGroup, App, SubCommand}; use clap::{Arg, App, SubCommand};
pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> { pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> {
app app

View file

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

View file

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

View file

@ -17,8 +17,6 @@ homepage = "http://imag-pim.org"
clap = "2.*" clap = "2.*"
log = "0.3" log = "0.3"
version = "2.0.1" version = "2.0.1"
semver = "0.2"
toml = "^0.4"
chrono = "^0.4" chrono = "^0.4"
filters = "0.1.1" filters = "0.1.1"
itertools = "0.6" 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" } libimagrt = { version = "0.4.0", path = "../../../lib/core/libimagrt" }
libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" } libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" }
libimagtimetrack = { version = "0.4.0", path = "../../../lib/domain/libimagtimetrack" } libimagtimetrack = { version = "0.4.0", path = "../../../lib/domain/libimagtimetrack" }
libimagutil = { version = "0.4.0", path = "../../../lib/etc/libimagutil" }

View file

@ -18,12 +18,9 @@
// //
use std::cmp::Ord; use std::cmp::Ord;
use std::cmp::Ordering;
use filters::ops::not::Not;
use filters::filter::Filter; use filters::filter::Filter;
use itertools::Itertools; use itertools::Itertools;
use itertools::MinMaxResult;
use chrono::NaiveDateTime; use chrono::NaiveDateTime;
use libimagerror::trace::trace_error; use libimagerror::trace::trace_error;

View file

@ -17,14 +17,9 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
// //
use std::cmp::Ord;
use std::cmp::Ordering;
use std::str::FromStr; use std::str::FromStr;
use filters::ops::not::Not;
use filters::filter::Filter; use filters::filter::Filter;
use itertools::Itertools;
use itertools::MinMaxResult;
use chrono::NaiveDateTime; use chrono::NaiveDateTime;
use libimagerror::trace::trace_error; use libimagerror::trace::trace_error;

View file

@ -17,15 +17,9 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
// //
use std::cmp::Ord;
use std::cmp::Ordering;
use std::str::FromStr; use std::str::FromStr;
use filters::ops::not::Not;
use filters::filter::Filter; use filters::filter::Filter;
use itertools::Itertools;
use itertools::MinMaxResult;
use chrono::NaiveDateTime;
use libimagerror::trace::trace_error; use libimagerror::trace::trace_error;
use libimagerror::trace::MapErrTrace; use libimagerror::trace::MapErrTrace;
@ -33,7 +27,6 @@ use libimagerror::iter::TraceIterator;
use libimagstore::store::FileLockEntry; use libimagstore::store::FileLockEntry;
use libimagtimetrack::timetrackingstore::TimeTrackStore; use libimagtimetrack::timetrackingstore::TimeTrackStore;
use libimagtimetrack::timetracking::TimeTracking; use libimagtimetrack::timetracking::TimeTracking;
use libimagtimetrack::iter::filter::*;
use libimagrt::runtime::Runtime; use libimagrt::runtime::Runtime;
@ -76,7 +69,7 @@ pub fn list(rt: &Runtime) -> i32 {
}; };
let end_time_filter = |timetracking: &FileLockEntry| { let end_time_filter = |timetracking: &FileLockEntry| {
start.map(|s| match timetracking.get_end_datetime() { end.map(|s| match timetracking.get_end_datetime() {
Ok(Some(dt)) => dt <= s, Ok(Some(dt)) => dt <= s,
Ok(None) => list_not_ended, Ok(None) => list_not_ended,
Err(e) => { Err(e) => {

View file

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

View file

@ -17,14 +17,9 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
// //
use std::cmp::Ord;
use std::cmp::Ordering;
use std::str::FromStr; use std::str::FromStr;
use filters::ops::not::Not;
use filters::filter::Filter; use filters::filter::Filter;
use itertools::Itertools;
use itertools::MinMaxResult;
use chrono::NaiveDateTime; use chrono::NaiveDateTime;
use libimagerror::trace::trace_error; use libimagerror::trace::trace_error;
@ -44,7 +39,6 @@ pub fn month(rt: &Runtime) -> i32 {
let filter = { let filter = {
use chrono::offset::Local; use chrono::offset::Local;
use chrono::naive::NaiveDate; use chrono::naive::NaiveDate;
use chrono::Weekday;
use chrono::Datelike; use chrono::Datelike;
let now = Local::now(); let now = Local::now();

View file

@ -24,7 +24,6 @@ use filters::filter::Filter;
use libimagerror::trace::trace_error; use libimagerror::trace::trace_error;
use libimagerror::iter::TraceIterator; use libimagerror::iter::TraceIterator;
use libimagrt::runtime::Runtime; use libimagrt::runtime::Runtime;
use libimagrt::setup::generate_runtime_setup;
use libimagtimetrack::timetracking::TimeTracking; use libimagtimetrack::timetracking::TimeTracking;
use libimagtimetrack::tag::TimeTrackingTag; use libimagtimetrack::tag::TimeTrackingTag;

View file

@ -17,14 +17,9 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
// //
use std::cmp::Ord;
use std::cmp::Ordering;
use std::str::FromStr; use std::str::FromStr;
use filters::ops::not::Not;
use filters::filter::Filter; use filters::filter::Filter;
use itertools::Itertools;
use itertools::MinMaxResult;
use chrono::NaiveDateTime; use chrono::NaiveDateTime;
use libimagerror::trace::trace_error; use libimagerror::trace::trace_error;

View file

@ -17,14 +17,9 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
// //
use std::cmp::Ord;
use std::cmp::Ordering;
use std::str::FromStr; use std::str::FromStr;
use filters::ops::not::Not;
use filters::filter::Filter; use filters::filter::Filter;
use itertools::Itertools;
use itertools::MinMaxResult;
use chrono::NaiveDateTime; use chrono::NaiveDateTime;
use libimagerror::trace::trace_error; use libimagerror::trace::trace_error;
@ -44,7 +39,6 @@ pub fn year(rt: &Runtime) -> i32 {
let filter = { let filter = {
use chrono::offset::Local; use chrono::offset::Local;
use chrono::naive::NaiveDate; use chrono::naive::NaiveDate;
use chrono::Weekday;
use chrono::Datelike; use chrono::Datelike;
let now = Local::now(); let now = Local::now();

View file

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

View file

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

View file

@ -252,7 +252,7 @@ mod test {
} }
impl Display for CustomData { impl Display for CustomData {
fn fmt(&self, fmt: &mut Formatter) -> Result<(), FmtError> { fn fmt(&self, _: &mut Formatter) -> Result<(), FmtError> {
Ok(()) Ok(())
} }
} }

View file

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

View file

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

View file

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

View file

@ -80,7 +80,7 @@ impl FileAbstractionInstance for InMemoryFileAbstractionInstance {
match *self { match *self {
InMemoryFileAbstractionInstance { ref absent_path, .. } => { InMemoryFileAbstractionInstance { ref absent_path, .. } => {
let mut mtx = self.fs_abstraction.lock().expect("Locking Mutex failed"); let mut mtx = self.fs_abstraction.lock().expect("Locking Mutex failed");
let mut backend = mtx.get_mut(); let backend = mtx.get_mut();
let _ = backend.insert(absent_path.clone(), buf.clone()); let _ = backend.insert(absent_path.clone(), buf.clone());
return Ok(()); return Ok(());
}, },
@ -130,7 +130,7 @@ impl FileAbstraction for InMemoryFileAbstraction {
fn copy(&self, from: &PathBuf, to: &PathBuf) -> Result<(), SE> { fn copy(&self, from: &PathBuf, to: &PathBuf) -> Result<(), SE> {
debug!("Copying : {:?} -> {:?}", from, to); debug!("Copying : {:?} -> {:?}", from, to);
let mut mtx = self.backend().lock().expect("Locking Mutex failed"); let mut mtx = self.backend().lock().expect("Locking Mutex failed");
let mut backend = mtx.get_mut(); let backend = mtx.get_mut();
let a = try!(backend.get(from).cloned().ok_or(SEK::FileNotFound.into_error())); let a = try!(backend.get(from).cloned().ok_or(SEK::FileNotFound.into_error()));
backend.insert(to.clone(), a); backend.insert(to.clone(), a);
@ -141,7 +141,7 @@ impl FileAbstraction for InMemoryFileAbstraction {
fn rename(&self, from: &PathBuf, to: &PathBuf) -> Result<(), SE> { fn rename(&self, from: &PathBuf, to: &PathBuf) -> Result<(), SE> {
debug!("Renaming: {:?} -> {:?}", from, to); debug!("Renaming: {:?} -> {:?}", from, to);
let mut mtx = self.backend().lock().expect("Locking Mutex failed"); let mut mtx = self.backend().lock().expect("Locking Mutex failed");
let mut backend = mtx.get_mut(); let backend = mtx.get_mut();
let a = try!(backend.get(from).cloned().ok_or(SEK::FileNotFound.into_error())); let a = try!(backend.get(from).cloned().ok_or(SEK::FileNotFound.into_error()));
backend.insert(to.clone(), a); backend.insert(to.clone(), a);
@ -164,7 +164,7 @@ impl FileAbstraction for InMemoryFileAbstraction {
fn fill<'a>(&'a mut self, mut d: Drain) -> Result<(), SE> { fn fill<'a>(&'a mut self, mut d: Drain) -> Result<(), SE> {
debug!("Draining into : {:?}", self); debug!("Draining into : {:?}", self);
let mut mtx = try!(self.backend().lock().map_err(|_| SEK::LockError.into_error())); let mut mtx = try!(self.backend().lock().map_err(|_| SEK::LockError.into_error()));
let mut backend = mtx.get_mut(); let backend = mtx.get_mut();
for (path, element) in d.iter() { for (path, element) in d.iter() {
debug!("Drain into {:?}: {:?}", self, path); debug!("Drain into {:?}: {:?}", self, path);

View file

@ -143,7 +143,7 @@ impl<W: Write, M: Mapper> FileAbstraction for StdoutFileAbstraction<W, M> {
fn fill(&mut self, mut d: Drain) -> Result<(), SE> { fn fill(&mut self, mut d: Drain) -> Result<(), SE> {
debug!("Draining into : {:?}", self); debug!("Draining into : {:?}", self);
let mut mtx = try!(self.backend().lock().map_err(|_| SEK::IoError.into_error())); let mut mtx = try!(self.backend().lock().map_err(|_| SEK::IoError.into_error()));
let mut backend = mtx.get_mut(); let backend = mtx.get_mut();
for (path, element) in d.iter() { for (path, element) in d.iter() {
debug!("Drain into {:?}: {:?}", self, path); debug!("Drain into {:?}: {:?}", self, path);

View file

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

View file

@ -452,7 +452,7 @@ impl Store {
.map_err(|_| SE::new(SEK::LockPoisoned, None)) .map_err(|_| SE::new(SEK::LockPoisoned, None))
.and_then(|mut es| { .and_then(|mut es| {
let new_se = try!(StoreEntry::new(id.clone(), &self.backend)); let new_se = try!(StoreEntry::new(id.clone(), &self.backend));
let mut se = es.entry(id.clone()).or_insert(new_se); let se = es.entry(id.clone()).or_insert(new_se);
let entry = se.get_entry(); let entry = se.get_entry();
se.status = StoreEntryStatus::Borrowed; se.status = StoreEntryStatus::Borrowed;
entry entry
@ -564,7 +564,7 @@ impl Store {
Ok(e) => e, Ok(e) => e,
}; };
let mut se = try!(hsmap.get_mut(&entry.location).ok_or(SE::new(SEK::IdNotFound, None))); let se = try!(hsmap.get_mut(&entry.location).ok_or(SE::new(SEK::IdNotFound, None)));
assert!(se.is_borrowed(), "Tried to update a non borrowed entry."); assert!(se.is_borrowed(), "Tried to update a non borrowed entry.");

View file

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

View file

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

View file

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

View file

@ -75,8 +75,8 @@ impl<'a> Counter<'a> {
let mut lockentry = try!(store.create(id).map_err_into(CEK::StoreWriteError)); let mut lockentry = try!(store.create(id).map_err_into(CEK::StoreWriteError));
{ {
let mut entry = lockentry.deref_mut(); let entry = lockentry.deref_mut();
let mut header = entry.get_header_mut(); let header = entry.get_header_mut();
let setres = header.set(&String::from("counter"), Value::Table(BTreeMap::new())); let setres = header.set(&String::from("counter"), Value::Table(BTreeMap::new()));
if setres.is_err() { if setres.is_err() {
return Err(CEK::StoreWriteError.into_error()); return Err(CEK::StoreWriteError.into_error());
@ -103,7 +103,7 @@ impl<'a> Counter<'a> {
self.unit = unit; self.unit = unit;
if let Some(u) = self.unit.clone() { if let Some(u) = self.unit.clone() {
let mut header = self.fle.deref_mut().get_header_mut(); let header = self.fle.deref_mut().get_header_mut();
let setres = header.set(&String::from("counter.unit"), Value::String(u.0)); let setres = header.set(&String::from("counter.unit"), Value::String(u.0));
if setres.is_err() { if setres.is_err() {
self.unit = None; self.unit = None;
@ -114,7 +114,7 @@ impl<'a> Counter<'a> {
} }
pub fn inc(&mut self) -> Result<()> { pub fn inc(&mut self) -> Result<()> {
let mut header = self.fle.deref_mut().get_header_mut(); let header = self.fle.deref_mut().get_header_mut();
let query = String::from("counter.value"); let query = String::from("counter.value");
match try!(header.read(&query).map_err_into(CEK::StoreReadError)) { match try!(header.read(&query).map_err_into(CEK::StoreReadError)) {
Some(&Value::Integer(i)) => { Some(&Value::Integer(i)) => {
@ -127,7 +127,7 @@ impl<'a> Counter<'a> {
} }
pub fn dec(&mut self) -> Result<()> { pub fn dec(&mut self) -> Result<()> {
let mut header = self.fle.deref_mut().get_header_mut(); let header = self.fle.deref_mut().get_header_mut();
let query = String::from("counter.value"); let query = String::from("counter.value");
match try!(header.read(&query).map_err_into(CEK::StoreReadError)) { match try!(header.read(&query).map_err_into(CEK::StoreReadError)) {
Some(&Value::Integer(i)) => { Some(&Value::Integer(i)) => {
@ -144,8 +144,10 @@ impl<'a> Counter<'a> {
} }
pub fn set(&mut self, v: i64) -> Result<()> { pub fn set(&mut self, v: i64) -> Result<()> {
let mut header = self.fle.deref_mut().get_header_mut(); self.fle
header.set(&String::from("counter.value"), Value::Integer(v)) .deref_mut()
.get_header_mut()
.set(&String::from("counter.value"), Value::Integer(v))
.map_err_into(CEK::StoreWriteError) .map_err_into(CEK::StoreWriteError)
.map(|_| ()) .map(|_| ())
} }

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -14,7 +14,6 @@ repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org" homepage = "http://imag-pim.org"
[dependencies] [dependencies]
semver = "0.5"
log = "0.3" log = "0.3"
toml = "^0.4" toml = "^0.4"
toml-query = "0.3.0" 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" } libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" }
libimagrt = { version = "0.4.0", path = "../../../lib/core/libimagrt" } libimagrt = { version = "0.4.0", path = "../../../lib/core/libimagrt" }
libimagentryedit = { version = "0.4.0", path = "../../../lib/entry/libimagentryedit" } 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; #[macro_use] extern crate log;
extern crate semver;
extern crate toml; extern crate toml;
extern crate toml_query; extern crate toml_query;
@ -42,7 +41,6 @@ extern crate libimagrt;
#[macro_use] extern crate libimagstore; #[macro_use] extern crate libimagstore;
#[macro_use] extern crate libimagerror; #[macro_use] extern crate libimagerror;
extern crate libimagentryedit; extern crate libimagentryedit;
extern crate libimagentrytag;
module_entry_path_mod!("notes"); module_entry_path_mod!("notes");

View file

@ -58,10 +58,10 @@ impl<'a> Note<'a> {
.map_err_into(NEK::StoreWriteError)); .map_err_into(NEK::StoreWriteError));
{ {
let mut entry = lockentry.deref_mut(); let entry = lockentry.deref_mut();
{ {
let mut header = entry.get_header_mut(); let header = entry.get_header_mut();
let setres = header.set("note", Value::Table(BTreeMap::new())); let setres = header.set("note", Value::Table(BTreeMap::new()));
if setres.is_err() { if setres.is_err() {
let kind = NEK::StoreWriteError; let kind = NEK::StoreWriteError;
@ -85,8 +85,9 @@ impl<'a> Note<'a> {
} }
pub fn set_name(&mut self, n: String) -> Result<()> { pub fn set_name(&mut self, n: String) -> Result<()> {
let mut header = self.entry.get_header_mut(); self.entry
header.set("note.name", Value::String(n)) .get_header_mut()
.set("note.name", Value::String(n))
.map_err(|e| NE::new(NEK::StoreWriteError, Some(Box::new(e)))) .map_err(|e| NE::new(NEK::StoreWriteError, Some(Box::new(e))))
.map(|_| ()) .map(|_| ())
} }

View file

@ -14,15 +14,12 @@ repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org" homepage = "http://imag-pim.org"
[dependencies] [dependencies]
semver = "0.2"
task-hookrs = "0.2.2" task-hookrs = "0.2.2"
uuid = "0.3" uuid = "0.3"
toml = "0.4.*" toml = "0.4.*"
toml-query = "0.3.*" toml-query = "0.3.*"
is-match = "0.1.*"
log = "0.3" log = "0.3"
serde_json = "0.8" serde_json = "0.8"
libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" } libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" }
libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" } 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, while_true,
)] )]
extern crate semver;
extern crate uuid; extern crate uuid;
extern crate toml; extern crate toml;
extern crate toml_query; extern crate toml_query;
#[macro_use] extern crate is_match;
#[macro_use] extern crate log; #[macro_use] extern crate log;
extern crate serde_json; extern crate serde_json;
#[macro_use] extern crate libimagstore; #[macro_use] extern crate libimagstore;
#[macro_use] extern crate libimagerror; #[macro_use] extern crate libimagerror;
extern crate libimagutil;
extern crate task_hookrs; extern crate task_hookrs;
module_entry_path_mod!("todo"); module_entry_path_mod!("todo");

View file

@ -220,13 +220,6 @@ impl<'a> IntoTask<'a> for TTask {
use toml_query::read::TomlValueReadExt; use toml_query::read::TomlValueReadExt;
use toml_query::set::TomlValueSetExt; use toml_query::set::TomlValueSetExt;
// Helper for toml_query::read::TomlValueReadExt::read() return value, which does only
// return Result<T> instead of Result<Option<T>>, which is a real inconvenience.
//
let no_identifier = |e: &::toml_query::error::Error| -> bool {
is_match!(e.kind(), &::toml_query::error::ErrorKind::IdentifierNotFoundInDocument(_))
};
let uuid = self.uuid(); let uuid = self.uuid();
ModuleEntryPath::new(format!("taskwarrior/{}", uuid)) ModuleEntryPath::new(format!("taskwarrior/{}", uuid))
.into_storeid() .into_storeid()
@ -236,7 +229,7 @@ impl<'a> IntoTask<'a> for TTask {
.map_err_into(TEK::StoreError) .map_err_into(TEK::StoreError)
.and_then(|mut fle| { .and_then(|mut fle| {
{ {
let mut hdr = fle.get_header_mut(); let hdr = fle.get_header_mut();
if try!(hdr.read("todo").map_err_into(TEK::StoreError)).is_none() { if try!(hdr.read("todo").map_err_into(TEK::StoreError)).is_none() {
try!(hdr try!(hdr
.set("todo", Value::Table(BTreeMap::new())) .set("todo", Value::Table(BTreeMap::new()))

View file

@ -10,7 +10,6 @@ readme = "../README.md"
license = "LGPL-2.1" license = "LGPL-2.1"
[dependencies] [dependencies]
uuid = { version = "0.3.1", features = ["v4"] }
lazy_static = "0.1.15" lazy_static = "0.1.15"
toml = "^0.4" toml = "^0.4"
toml-query = "0.3.0" 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" } libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" }
libimagnotes = { version = "0.4.0", path = "../../../lib/domain/libimagnotes" } libimagnotes = { version = "0.4.0", path = "../../../lib/domain/libimagnotes" }
libimagentrylink = { version = "0.4.0", path = "../../../lib/entry/libimagentrylink" } 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, while_true,
)] )]
extern crate uuid;
extern crate toml; extern crate toml;
extern crate toml_query; extern crate toml_query;
@ -41,7 +40,6 @@ extern crate toml_query;
extern crate libimagstore; extern crate libimagstore;
extern crate libimagentrylink; extern crate libimagentrylink;
extern crate libimagnotes; extern crate libimagnotes;
extern crate libimagutil;
pub mod annotateable; pub mod annotateable;
pub mod annotation_fetcher; pub mod annotation_fetcher;

View file

@ -21,5 +21,4 @@ toml = "0.4"
libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" } libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" }
libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" } 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; #[macro_use] extern crate libimagerror;
extern crate libimagstore; extern crate libimagstore;
extern crate libimagutil;
pub mod datepath; pub mod datepath;
pub mod datetime; pub mod datetime;

View file

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

View file

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

View file

@ -350,7 +350,7 @@ impl ExternalLinker for Entry {
debug!("Generating header content!"); debug!("Generating header content!");
{ {
let mut hdr = file.deref_mut().get_header_mut(); let hdr = file.deref_mut().get_header_mut();
let mut table = match hdr.read("imag.content") { let mut table = match hdr.read("imag.content") {
Ok(Some(&Value::Table(ref table))) => table.clone(), Ok(Some(&Value::Table(ref table))) => table.clone(),

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -17,13 +17,10 @@ homepage = "http://imag-pim.org"
itertools = "0.5" itertools = "0.5"
log = "0.3" log = "0.3"
rust-crypto = "0.2" rust-crypto = "0.2"
semver = "0.5"
toml = "^0.4" toml = "^0.4"
version = "2.0.1"
walkdir = "1.0.*" walkdir = "1.0.*"
toml-query = "0.3.0" toml-query = "0.3.0"
libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" } libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" }
libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" } libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" }
libimagentrylist = { version = "0.4.0", path = "../../../lib/entry/libimagentrylist" } 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; #[macro_use] extern crate log;
extern crate crypto; extern crate crypto;
extern crate itertools; extern crate itertools;
extern crate semver;
extern crate toml; extern crate toml;
extern crate toml_query; extern crate toml_query;
extern crate version;
extern crate walkdir; extern crate walkdir;
#[macro_use] extern crate libimagstore; #[macro_use] extern crate libimagstore;
#[macro_use] extern crate libimagerror; #[macro_use] extern crate libimagerror;
extern crate libimagutil;
extern crate libimagentrylist; extern crate libimagentrylist;
module_entry_path_mod!("ref"); 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" } libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" }
libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" } 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; extern crate libimagstore;
#[macro_use] extern crate libimagerror; #[macro_use] extern crate libimagerror;
extern crate libimagutil;
pub mod error; pub mod error;
pub mod exec; pub mod exec;

View file

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

View file

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

View file

@ -21,10 +21,6 @@ lazy_static = "0.2.*"
log = "0.3" log = "0.3"
regex = "0.2" regex = "0.2"
toml = "^0.4" toml = "^0.4"
spinner = "0.4"
rustyline = "1.0"
libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" } libimagstore = { version = "0.4.0", path = "../../../lib/core/libimagstore" }
libimagerror = { version = "0.4.0", path = "../../../lib/core/libimagerror" } 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, while_true,
)] )]
extern crate spinner;
extern crate interactor; extern crate interactor;
extern crate ansi_term; extern crate ansi_term;
#[macro_use] extern crate lazy_static; #[macro_use] extern crate lazy_static;
extern crate regex; extern crate regex;
extern crate clap; extern crate clap;
extern crate toml; extern crate toml;
extern crate rustyline;
extern crate libimagentryfilter;
extern crate libimagstore; extern crate libimagstore;
extern crate libimagutil;
#[macro_use] extern crate libimagerror; #[macro_use] extern crate libimagerror;
pub mod ask; pub mod ask;