Merge pull request #1166 from matthiasbeyer/log-0-4-0
Dependency update: log 0.4.0
This commit is contained in:
commit
3735fbac2f
43 changed files with 90 additions and 85 deletions
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
url = "1.2"
|
url = "1.2"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "0.6"
|
toml-query = "0.6"
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
url = "1.2"
|
url = "1.2"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "0.6"
|
toml-query = "0.6"
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
url = "1.5"
|
url = "1.5"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "0.6"
|
toml-query = "0.6"
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
|
|
||||||
libimagrt = { version = "0.6.0", path = "../../../lib/core/libimagrt" }
|
libimagrt = { version = "0.6.0", path = "../../../lib/core/libimagrt" }
|
||||||
libimagerror = { version = "0.6.0", path = "../../../lib/core/libimagerror" }
|
libimagerror = { version = "0.6.0", path = "../../../lib/core/libimagerror" }
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
|
|
||||||
libimagrt = { version = "0.6.0", path = "../../../lib/core/libimagrt" }
|
libimagrt = { version = "0.6.0", path = "../../../lib/core/libimagrt" }
|
||||||
libimagerror = { version = "0.6.0", path = "../../../lib/core/libimagerror" }
|
libimagerror = { version = "0.6.0", path = "../../../lib/core/libimagerror" }
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
error-chain = "0.11"
|
error-chain = "0.11"
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
|
|
||||||
libimagstore = { version = "0.6.0", path = "../../../lib/core/libimagstore" }
|
libimagstore = { version = "0.6.0", path = "../../../lib/core/libimagstore" }
|
||||||
|
@ -32,7 +32,7 @@ libimagutil = { version = "0.6.0", path = "../../../lib/etc/libimagutil" }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
toml-query = "0.6"
|
toml-query = "0.6"
|
||||||
env_logger = "0.4"
|
env_logger = "0.5"
|
||||||
|
|
||||||
[dev-dependencies.libimagutil]
|
[dev-dependencies.libimagutil]
|
||||||
version = "0.6.0"
|
version = "0.6.0"
|
||||||
|
|
|
@ -273,8 +273,7 @@ mod tests {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn setup_logging() {
|
fn setup_logging() {
|
||||||
use env_logger;
|
let _ = ::env_logger::try_init();
|
||||||
let _ = env_logger::init().unwrap_or(());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "0.6"
|
toml-query = "0.6"
|
||||||
handlebars = "0.29.0"
|
handlebars = "0.29.0"
|
||||||
|
|
|
@ -22,7 +22,7 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
walkdir = "1"
|
walkdir = "1"
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "0.6"
|
toml-query = "0.6"
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "0.6"
|
toml-query = "0.6"
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ homepage = "http://imag-pim.org"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "0.6"
|
toml-query = "0.6"
|
||||||
handlebars = "0.29"
|
handlebars = "0.29"
|
||||||
|
|
|
@ -22,7 +22,7 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "0.6"
|
toml-query = "0.6"
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
|
|
||||||
libimagrt = { version = "0.6.0", path = "../../../lib/core/libimagrt" }
|
libimagrt = { version = "0.6.0", path = "../../../lib/core/libimagrt" }
|
||||||
libimagerror = { version = "0.6.0", path = "../../../lib/core/libimagerror" }
|
libimagerror = { version = "0.6.0", path = "../../../lib/core/libimagerror" }
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
itertools = "0.7"
|
itertools = "0.7"
|
||||||
|
|
||||||
libimagrt = { version = "0.6.0", path = "../../../lib/core/libimagrt" }
|
libimagrt = { version = "0.6.0", path = "../../../lib/core/libimagrt" }
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
filters = "0.2"
|
filters = "0.2"
|
||||||
itertools = "0.7"
|
itertools = "0.7"
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "0.6"
|
toml-query = "0.6"
|
||||||
is-match = "0.1"
|
is-match = "0.1"
|
||||||
|
|
|
@ -20,5 +20,5 @@ is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
|
||||||
maintenance = { status = "actively-developed" }
|
maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
ansi_term = "0.10"
|
ansi_term = "0.10"
|
||||||
|
|
|
@ -21,9 +21,8 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
env_logger = "0.4"
|
env_logger = "0.5"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
log = "0.3"
|
|
||||||
xdg-basedir = "1.0"
|
xdg-basedir = "1.0"
|
||||||
itertools = "0.7"
|
itertools = "0.7"
|
||||||
ansi_term = "0.10"
|
ansi_term = "0.10"
|
||||||
|
@ -37,6 +36,11 @@ libimagerror = { version = "0.6.0", path = "../../../lib/core/libimagerror" }
|
||||||
libimagutil = { version = "0.6.0", path = "../../../lib/etc/libimagutil" }
|
libimagutil = { version = "0.6.0", path = "../../../lib/etc/libimagutil" }
|
||||||
libimaginteraction = { version = "0.6.0", path = "../../../lib/etc/libimaginteraction" }
|
libimaginteraction = { version = "0.6.0", path = "../../../lib/etc/libimaginteraction" }
|
||||||
|
|
||||||
|
[dependencies.log]
|
||||||
|
version = "0.4.0-rc.1"
|
||||||
|
default-features = false
|
||||||
|
features = ["std"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ use error::ResultExt;
|
||||||
use runtime::Runtime;
|
use runtime::Runtime;
|
||||||
|
|
||||||
use clap::ArgMatches;
|
use clap::ArgMatches;
|
||||||
use log::{Log, LogLevel, LogRecord, LogMetadata};
|
use log::{Log, Level, Record, Metadata};
|
||||||
use toml::Value;
|
use toml::Value;
|
||||||
use toml_query::read::TomlValueReadExt;
|
use toml_query::read::TomlValueReadExt;
|
||||||
use toml_query::read::TomlValueReadTypeExt;
|
use toml_query::read::TomlValueReadTypeExt;
|
||||||
|
@ -52,7 +52,7 @@ impl Default for LogDestination {
|
||||||
|
|
||||||
struct ModuleSettings {
|
struct ModuleSettings {
|
||||||
enabled: bool,
|
enabled: bool,
|
||||||
level: Option<LogLevel>,
|
level: Option<Level>,
|
||||||
|
|
||||||
#[allow(unused)]
|
#[allow(unused)]
|
||||||
destinations: Option<Vec<LogDestination>>,
|
destinations: Option<Vec<LogDestination>>,
|
||||||
|
@ -60,7 +60,7 @@ struct ModuleSettings {
|
||||||
|
|
||||||
/// Logger implementation for `log` crate.
|
/// Logger implementation for `log` crate.
|
||||||
pub struct ImagLogger {
|
pub struct ImagLogger {
|
||||||
global_loglevel : LogLevel,
|
global_loglevel : Level,
|
||||||
|
|
||||||
#[allow(unused)]
|
#[allow(unused)]
|
||||||
global_destinations : Vec<LogDestination>,
|
global_destinations : Vec<LogDestination>,
|
||||||
|
@ -114,7 +114,7 @@ impl ImagLogger {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn global_loglevel(&self) -> LogLevel {
|
pub fn global_loglevel(&self) -> Level {
|
||||||
self.global_loglevel
|
self.global_loglevel
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,12 +122,16 @@ impl ImagLogger {
|
||||||
|
|
||||||
impl Log for ImagLogger {
|
impl Log for ImagLogger {
|
||||||
|
|
||||||
fn enabled(&self, metadata: &LogMetadata) -> bool {
|
fn enabled(&self, metadata: &Metadata) -> bool {
|
||||||
metadata.level() <= self.global_loglevel
|
metadata.level() <= self.global_loglevel
|
||||||
}
|
}
|
||||||
|
|
||||||
fn log(&self, record: &LogRecord) {
|
fn flush(&self) {
|
||||||
if record.location().module_path().starts_with("handlebars") {
|
// nothing?
|
||||||
|
}
|
||||||
|
|
||||||
|
fn log(&self, record: &Record) {
|
||||||
|
if record.module_path().map(|m| m.starts_with("handlebars")).unwrap_or(false) {
|
||||||
// This is a ugly, yet necessary hack. When logging, we use handlebars for templating.
|
// This is a ugly, yet necessary hack. When logging, we use handlebars for templating.
|
||||||
// But as the handlebars library itselfs logs via a normal logging macro ("debug!()"),
|
// But as the handlebars library itselfs logs via a normal logging macro ("debug!()"),
|
||||||
// we have a recursion in our chain.
|
// we have a recursion in our chain.
|
||||||
|
@ -143,9 +147,9 @@ impl Log for ImagLogger {
|
||||||
|
|
||||||
{
|
{
|
||||||
data.insert("level", format!("{}", record.level()));
|
data.insert("level", format!("{}", record.level()));
|
||||||
data.insert("module_path", String::from(record.location().module_path()));
|
data.insert("module_path", String::from(record.module_path().unwrap_or("<modulepath unknown>")));
|
||||||
data.insert("file", String::from(record.location().file()));
|
data.insert("file", String::from(record.file().unwrap_or("<file unknown>")));
|
||||||
data.insert("line", format!("{}", record.location().line()));
|
data.insert("line", format!("{}", record.line().unwrap_or(0)));
|
||||||
data.insert("target", String::from(record.target()));
|
data.insert("target", String::from(record.target()));
|
||||||
data.insert("message", format!("{}", record.args()));
|
data.insert("message", format!("{}", record.args()));
|
||||||
}
|
}
|
||||||
|
@ -209,27 +213,26 @@ impl Log for ImagLogger {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn match_log_level_str(s: &str) -> Result<LogLevel> {
|
fn match_log_level_str(s: &str) -> Result<Level> {
|
||||||
match s {
|
match s {
|
||||||
"trace" => Ok(LogLevel::Trace),
|
"trace" => Ok(Level::Trace),
|
||||||
"debug" => Ok(LogLevel::Debug),
|
"debug" => Ok(Level::Debug),
|
||||||
"info" => Ok(LogLevel::Info),
|
"info" => Ok(Level::Info),
|
||||||
"warn" => Ok(LogLevel::Warn),
|
"warn" => Ok(Level::Warn),
|
||||||
"error" => Ok(LogLevel::Error),
|
"error" => Ok(Level::Error),
|
||||||
_ => return Err(RE::from_kind(EK::InvalidLogLevelSpec)),
|
_ => return Err(RE::from_kind(EK::InvalidLogLevelSpec)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn aggregate_global_loglevel(matches: &ArgMatches, config: Option<&Value>)
|
fn aggregate_global_loglevel(matches: &ArgMatches, config: Option<&Value>) -> Result<Level>
|
||||||
-> Result<LogLevel>
|
|
||||||
{
|
{
|
||||||
fn get_arg_loglevel(matches: &ArgMatches) -> Result<Option<LogLevel>> {
|
fn get_arg_loglevel(matches: &ArgMatches) -> Result<Option<Level>> {
|
||||||
if matches.is_present(Runtime::arg_debugging_name()) {
|
if matches.is_present(Runtime::arg_debugging_name()) {
|
||||||
return Ok(Some(LogLevel::Debug))
|
return Ok(Some(Level::Debug))
|
||||||
}
|
}
|
||||||
|
|
||||||
if matches.is_present(Runtime::arg_verbosity_name()) {
|
if matches.is_present(Runtime::arg_verbosity_name()) {
|
||||||
return Ok(Some(LogLevel::Info))
|
return Ok(Some(Level::Info))
|
||||||
}
|
}
|
||||||
|
|
||||||
match matches.value_of(Runtime::arg_verbosity_name()) {
|
match matches.value_of(Runtime::arg_verbosity_name()) {
|
||||||
|
@ -253,7 +256,7 @@ fn aggregate_global_loglevel(matches: &ArgMatches, config: Option<&Value>)
|
||||||
Ok(cfg_loglevel)
|
Ok(cfg_loglevel)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
get_arg_loglevel(matches).map(|o| o.unwrap_or(LogLevel::Info))
|
get_arg_loglevel(matches).map(|o| o.unwrap_or(Level::Info))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,6 @@ pub use clap::App;
|
||||||
use toml::Value;
|
use toml::Value;
|
||||||
|
|
||||||
use clap::{Arg, ArgMatches};
|
use clap::{Arg, ArgMatches};
|
||||||
use log;
|
|
||||||
|
|
||||||
use configuration::{fetch_config, override_config, InternalConfiguration};
|
use configuration::{fetch_config, override_config, InternalConfiguration};
|
||||||
use error::RuntimeError;
|
use error::RuntimeError;
|
||||||
|
@ -335,20 +334,23 @@ impl<'a> Runtime<'a> {
|
||||||
|
|
||||||
/// Initialize the internal logger
|
/// Initialize the internal logger
|
||||||
fn init_logger(matches: &ArgMatches, config: Option<&Value>) {
|
fn init_logger(matches: &ArgMatches, config: Option<&Value>) {
|
||||||
|
use log::set_max_level;
|
||||||
|
use log::set_boxed_logger;
|
||||||
use std::env::var as env_var;
|
use std::env::var as env_var;
|
||||||
use env_logger;
|
use env_logger;
|
||||||
|
|
||||||
if env_var("IMAG_LOG_ENV").is_ok() {
|
if env_var("IMAG_LOG_ENV").is_ok() {
|
||||||
env_logger::init().unwrap();
|
let _ = env_logger::try_init();
|
||||||
} else {
|
} else {
|
||||||
log::set_logger(|max_log_lvl| {
|
|
||||||
let logger = ImagLogger::new(matches, config)
|
let logger = ImagLogger::new(matches, config)
|
||||||
.map_err_trace()
|
.map_err_trace()
|
||||||
.unwrap_or_else(|_| exit(1));
|
.unwrap_or_else(|_| exit(1));
|
||||||
max_log_lvl.set(logger.global_loglevel().to_log_level_filter());
|
|
||||||
|
set_max_level(logger.global_loglevel().to_level_filter());
|
||||||
|
|
||||||
debug!("Init logger with {}", logger.global_loglevel());
|
debug!("Init logger with {}", logger.global_loglevel());
|
||||||
Box::new(logger)
|
|
||||||
})
|
set_boxed_logger(Box::new(logger))
|
||||||
.map_err(|e| panic!("Could not setup logger: {:?}", e))
|
.map_err(|e| panic!("Could not setup logger: {:?}", e))
|
||||||
.ok();
|
.ok();
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
glob = "0.2.11"
|
glob = "0.2.11"
|
||||||
lazy_static = "0.2"
|
lazy_static = "0.2"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
regex = "0.2"
|
regex = "0.2"
|
||||||
semver = "0.8"
|
semver = "0.8"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
|
@ -39,7 +39,7 @@ libimagutil = { version = "0.6.0", path = "../../../lib/etc/libimagutil" }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
tempdir = "0.3"
|
tempdir = "0.3"
|
||||||
env_logger = "0.4"
|
env_logger = "0.5"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "0.6"
|
toml-query = "0.6"
|
||||||
itertools = "0.7"
|
itertools = "0.7"
|
||||||
|
|
|
@ -20,7 +20,7 @@ is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
|
||||||
maintenance = { status = "actively-developed" }
|
maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
email = "0.0.17"
|
email = "0.0.17"
|
||||||
filters = "0.2"
|
filters = "0.2"
|
||||||
error-chain = "0.11"
|
error-chain = "0.11"
|
||||||
|
|
|
@ -20,7 +20,7 @@ is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
|
||||||
maintenance = { status = "actively-developed" }
|
maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "0.6"
|
toml-query = "0.6"
|
||||||
error-chain = "0.11"
|
error-chain = "0.11"
|
||||||
|
|
|
@ -24,7 +24,7 @@ task-hookrs = "0.4"
|
||||||
uuid = "0.5"
|
uuid = "0.5"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "0.6"
|
toml-query = "0.6"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
error-chain = "0.11"
|
error-chain = "0.11"
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
|
||||||
maintenance = { status = "actively-developed" }
|
maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "0.6"
|
toml-query = "0.6"
|
||||||
is-match = "0.1"
|
is-match = "0.1"
|
||||||
|
@ -30,5 +30,5 @@ libimagerror = { version = "0.6.0", path = "../../../lib/core/libimagerror" }
|
||||||
libimagstore = { version = "0.6.0", path = "../../../lib/core/libimagstore" }
|
libimagstore = { version = "0.6.0", path = "../../../lib/core/libimagstore" }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
env_logger = "0.4"
|
env_logger = "0.5"
|
||||||
|
|
||||||
|
|
|
@ -175,7 +175,7 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_creating_category_creates_store_entry_with_header_field_set() {
|
fn test_creating_category_creates_store_entry_with_header_field_set() {
|
||||||
let _ = env_logger::init();
|
let _ = env_logger::try_init();
|
||||||
let category_name = "examplecategory";
|
let category_name = "examplecategory";
|
||||||
let store = get_store();
|
let store = get_store();
|
||||||
let res = store.create_category(category_name);
|
let res = store.create_category(category_name);
|
||||||
|
|
|
@ -23,7 +23,7 @@ maintenance = { status = "actively-developed" }
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
filters = "0.2"
|
filters = "0.2"
|
||||||
itertools = "0.7"
|
itertools = "0.7"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
regex = "0.2"
|
regex = "0.2"
|
||||||
semver = "0.8"
|
semver = "0.8"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
|
|
|
@ -26,5 +26,5 @@ libimagstore = { version = "0.6.0", path = "../../../lib/core/libimagstore" }
|
||||||
libimagerror = { version = "0.6.0", path = "../../../lib/core/libimagerror" }
|
libimagerror = { version = "0.6.0", path = "../../../lib/core/libimagerror" }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
env_logger = "0.4"
|
env_logger = "0.5"
|
||||||
|
|
||||||
|
|
|
@ -108,8 +108,7 @@ mod tests {
|
||||||
use entry::*;
|
use entry::*;
|
||||||
|
|
||||||
fn setup_logging() {
|
fn setup_logging() {
|
||||||
use env_logger;
|
let _ = ::env_logger::try_init;
|
||||||
let _ = env_logger::init().unwrap_or(());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_store() -> Store {
|
fn get_store() -> Store {
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
itertools = "0.7"
|
itertools = "0.7"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
url = "1.5"
|
url = "1.5"
|
||||||
rust-crypto = "0.2"
|
rust-crypto = "0.2"
|
||||||
|
@ -34,5 +34,5 @@ libimagerror = { version = "0.6.0", path = "../../../lib/core/libimagerror" }
|
||||||
libimagutil = { version = "0.6.0", path = "../../../lib/etc/libimagutil" }
|
libimagutil = { version = "0.6.0", path = "../../../lib/etc/libimagutil" }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
env_logger = "0.4"
|
env_logger = "0.5"
|
||||||
|
|
||||||
|
|
|
@ -411,7 +411,7 @@ mod tests {
|
||||||
|
|
||||||
fn setup_logging() {
|
fn setup_logging() {
|
||||||
use env_logger;
|
use env_logger;
|
||||||
let _ = env_logger::init().unwrap_or(());
|
let _ = env_logger::try_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_store() -> Store {
|
pub fn get_store() -> Store {
|
||||||
|
|
|
@ -767,8 +767,7 @@ mod test {
|
||||||
use super::Link;
|
use super::Link;
|
||||||
|
|
||||||
fn setup_logging() {
|
fn setup_logging() {
|
||||||
use env_logger;
|
let _ = ::env_logger::try_init();
|
||||||
let _ = env_logger::init().unwrap_or(());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_store() -> Store {
|
pub fn get_store() -> Store {
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
prettytable-rs = "0.6.*"
|
prettytable-rs = "0.6.*"
|
||||||
error-chain = "0.11"
|
error-chain = "0.11"
|
||||||
|
|
||||||
|
|
|
@ -20,11 +20,11 @@ is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
|
||||||
maintenance = { status = "actively-developed" }
|
maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
hoedown = "6.0.0"
|
hoedown = "6.0.0"
|
||||||
url = "1.5"
|
url = "1.5"
|
||||||
error-chain = "0.11"
|
error-chain = "0.11"
|
||||||
env_logger = "0.4"
|
env_logger = "0.5"
|
||||||
|
|
||||||
libimagstore = { version = "0.6.0", path = "../../../lib/core/libimagstore" }
|
libimagstore = { version = "0.6.0", path = "../../../lib/core/libimagstore" }
|
||||||
libimagerror = { version = "0.6.0", path = "../../../lib/core/libimagerror" }
|
libimagerror = { version = "0.6.0", path = "../../../lib/core/libimagerror" }
|
||||||
|
|
|
@ -218,8 +218,7 @@ mod tests {
|
||||||
use libimagentrylink::internal::InternalLinker;
|
use libimagentrylink::internal::InternalLinker;
|
||||||
|
|
||||||
fn setup_logging() {
|
fn setup_logging() {
|
||||||
use env_logger;
|
let _ = ::env_logger::try_init();
|
||||||
let _ = env_logger::init().unwrap_or(());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_store() -> Store {
|
pub fn get_store() -> Store {
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
itertools = "0.7"
|
itertools = "0.7"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
rust-crypto = "0.2"
|
rust-crypto = "0.2"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "0.6"
|
toml-query = "0.6"
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
regex = "0.2"
|
regex = "0.2"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
itertools = "0.7"
|
itertools = "0.7"
|
||||||
|
|
|
@ -20,7 +20,7 @@ is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
|
||||||
maintenance = { status = "actively-developed" }
|
maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
error-chain = "0.11"
|
error-chain = "0.11"
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ ansi_term = "0.10"
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
interactor = "0.1"
|
interactor = "0.1"
|
||||||
lazy_static = "0.2"
|
lazy_static = "0.2"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
regex = "0.2"
|
regex = "0.2"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
error-chain = "0.11"
|
error-chain = "0.11"
|
||||||
|
|
|
@ -22,7 +22,7 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
lazy_static = "0.2"
|
lazy_static = "0.2"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
regex = "0.2"
|
regex = "0.2"
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ maintenance = { status = "actively-developed" }
|
||||||
url = "1.5"
|
url = "1.5"
|
||||||
boolinator = "2.4.0"
|
boolinator = "2.4.0"
|
||||||
lazy_static = "0.2"
|
lazy_static = "0.2"
|
||||||
log = "0.3"
|
log = "0.4.0"
|
||||||
regex = "0.2"
|
regex = "0.2"
|
||||||
tempfile = "2.1"
|
tempfile = "2.1"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue