Updates dependencies and tries to consolidate multiple version (#815)

This commit is contained in:
Bastian Köcher
2018-09-27 14:50:15 +02:00
committed by Gav Wood
parent 0ab3b2de35
commit 5eb1aefde6
26 changed files with 210 additions and 131 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ sr-version = { path = "../sr-version" }
tokio = "0.1.7"
parking_lot = "0.4"
error-chain = "0.12"
log = "0.3"
log = "0.4"
rhododendron = "0.3"
[dev-dependencies]
+3 -3
View File
@@ -8,14 +8,14 @@ build = "build.rs"
[dependencies]
clap = { version = "~2.32", features = ["yaml"] }
backtrace = "0.3"
env_logger = "0.4"
env_logger = "0.5"
error-chain = "0.12"
log = "0.3"
log = "0.4"
atty = "0.2"
regex = "1"
time = "0.1"
slog = "^2"
ansi_term = "0.10"
ansi_term = "0.11"
lazy_static = "1.0"
app_dirs = "1.2"
tokio = "0.1.7"
+10 -11
View File
@@ -506,12 +506,12 @@ fn default_base_path() -> PathBuf {
fn init_logger(pattern: &str) {
use ansi_term::Colour;
let mut builder = env_logger::LogBuilder::new();
let mut builder = env_logger::Builder::new();
// Disable info logging by default for some modules:
builder.filter(Some("ws"), log::LogLevelFilter::Warn);
builder.filter(Some("hyper"), log::LogLevelFilter::Warn);
builder.filter(Some("ws"), log::LevelFilter::Warn);
builder.filter(Some("hyper"), log::LevelFilter::Warn);
// Enable info for others.
builder.filter(None, log::LogLevelFilter::Info);
builder.filter(None, log::LevelFilter::Info);
if let Ok(lvl) = std::env::var("RUST_LOG") {
builder.parse(&lvl);
@@ -521,10 +521,10 @@ fn init_logger(pattern: &str) {
let isatty = atty::is(atty::Stream::Stderr);
let enable_color = isatty;
let format = move |record: &log::LogRecord| {
builder.format(move |buf, record| {
let timestamp = time::strftime("%Y-%m-%d %H:%M:%S", &time::now()).expect("Error formatting log timestamp");
let mut output = if log::max_log_level() <= log::LogLevelFilter::Info {
let mut output = if log::max_level() <= log::LevelFilter::Info {
format!("{} {}", Colour::Black.bold().paint(timestamp), record.args())
} else {
let name = ::std::thread::current().name().map_or_else(Default::default, |x| format!("{}", Colour::Blue.bold().paint(x)));
@@ -535,15 +535,14 @@ fn init_logger(pattern: &str) {
output = kill_color(output.as_ref());
}
if !isatty && record.level() <= log::LogLevel::Info && atty::is(atty::Stream::Stdout) {
if !isatty && record.level() <= log::Level::Info && atty::is(atty::Stream::Stdout) {
// duplicate INFO/WARN output to console
println!("{}", output);
}
output
};
builder.format(format);
write!(buf, "{}", output)
});
builder.init().expect("Logger initialized only once.");
builder.init();
}
fn kill_color(s: &str) -> String {
+1 -1
View File
@@ -6,7 +6,7 @@ authors = ["Parity Technologies <admin@parity.io>"]
[dependencies]
error-chain = "0.12"
fnv = "1.0"
log = "0.3"
log = "0.4"
parking_lot = "0.4"
trie-root = { git = "https://github.com/paritytech/trie" }
hex-literal = "0.1"
+1 -1
View File
@@ -5,7 +5,7 @@ authors = ["Parity Technologies <admin@parity.io>"]
[dependencies]
parking_lot = "0.4"
log = "0.3"
log = "0.4"
kvdb = "0.1"
kvdb-rocksdb = "0.1.3"
hash-db = { git = "https://github.com/paritytech/trie" }
+1 -1
View File
@@ -20,7 +20,7 @@ trie-root = { git = "https://github.com/paritytech/trie" }
twox-hash = "1.1.0"
lazy_static = "1.0"
parking_lot = "*"
log = "0.3"
log = "0.4"
hash-db = { git = "https://github.com/paritytech/trie" }
[dev-dependencies]
+1 -1
View File
@@ -14,7 +14,7 @@ futures = "0.1"
libp2p = { git = "https://github.com/tomaka/libp2p-rs", rev = "8111062f0177fd7423626f2db9560273644a4c4d", default-features = false, features = ["libp2p-secio", "libp2p-secio-secp256k1"] }
parking_lot = "0.5"
libc = "0.2"
log = "0.3"
log = "0.4"
rand = "0.5.0"
serde = "1.0.70"
serde_derive = "1.0.70"
+1 -1
View File
@@ -8,7 +8,7 @@ authors = ["Parity Technologies <admin@parity.io>"]
[lib]
[dependencies]
log = "0.3"
log = "0.4"
parking_lot = "0.4"
error-chain = "0.12"
bitflags = "1.0"
+1 -1
View File
@@ -8,7 +8,7 @@ jsonrpc-core = { git = "https://github.com/paritytech/jsonrpc.git" }
jsonrpc-http-server = { git = "https://github.com/paritytech/jsonrpc.git" }
jsonrpc-pubsub = { git = "https://github.com/paritytech/jsonrpc.git" }
jsonrpc-ws-server = { git = "https://github.com/paritytech/jsonrpc.git" }
log = "0.3"
log = "0.4"
serde = "1.0"
substrate-rpc = { path = "../rpc", version = "0.1" }
sr-primitives = { path = "../sr-primitives" }
+1 -1
View File
@@ -8,7 +8,7 @@ error-chain = "0.12"
jsonrpc-core = { git="https://github.com/paritytech/jsonrpc.git" }
jsonrpc-macros = { git="https://github.com/paritytech/jsonrpc.git" }
jsonrpc-pubsub = { git="https://github.com/paritytech/jsonrpc.git" }
log = "0.3"
log = "0.4"
parking_lot = "0.4"
parity-codec = { version = "2.0" }
substrate-client = { path = "../client" }
+1 -1
View File
@@ -8,7 +8,7 @@ futures = "0.1.17"
parking_lot = "0.4"
error-chain = "0.12"
lazy_static = "1.0"
log = "0.3"
log = "0.4"
slog = "^2"
tokio = "0.1.7"
exit-future = "0.1"
+1 -1
View File
@@ -13,7 +13,7 @@ parity-codec-derive = { version = "~1.0", default_features = false }
substrate-primitives = { path = "../primitives", default_features = false }
sr-std = { path = "../sr-std", default_features = false }
sr-io = { path = "../sr-io", default_features = false }
log = {version = "0.3", optional = true }
log = {version = "0.4", optional = true }
[dev-dependencies]
serde_json = "1.0"
+1 -1
View File
@@ -7,7 +7,7 @@ description = "Substrate State Machine"
[dependencies]
byteorder = "1.1"
hex-literal = "0.1.0"
log = "0.3"
log = "0.4"
parking_lot = "0.4"
heapsize = "0.4"
hash-db = { git = "https://github.com/paritytech/trie" }
+1 -1
View File
@@ -7,7 +7,7 @@ description = "Telemetry utils"
[dependencies]
parking_lot = "0.4"
lazy_static = "1.0"
log = "0.3"
log = "0.4"
slog = "^2"
slog-json = "^2"
slog-async = "^2"
+1 -1
View File
@@ -4,7 +4,7 @@ version = "0.1.0"
authors = ["Parity Technologies <admin@parity.io>"]
[dependencies]
log = { version = "0.3", optional = true }
log = { version = "0.4", optional = true }
hex-literal = { version = "0.1.0", optional = true }
serde = { version = "1.0", optional = true }
serde_derive = { version = "1.0", optional = true }
+1 -1
View File
@@ -4,7 +4,7 @@ version = "0.1.0"
authors = ["Parity Technologies <admin@parity.io>"]
[dependencies]
log = { version = "0.3", optional = true }
log = { version = "0.4", optional = true }
hex-literal = { version = "0.1.0", optional = true }
parity-codec = { version = "~2.0.1", default-features = false }
parity-codec-derive = { version = "~2.0.1", default-features = false }
+1 -1
View File
@@ -5,5 +5,5 @@ authors = ["Parity Technologies <admin@parity.io>"]
[dependencies]
error-chain = "0.12"
log = "0.3.0"
log = "0.4"
sr-primitives = { path = "../sr-primitives" }
+2 -2
View File
@@ -8,9 +8,9 @@ serde = "1.0"
serde_derive = "1.0"
error-chain = "0.12"
futures = "0.1"
log = "0.3"
log = "0.4"
parking_lot = "0.4"
transaction-pool = "1.13.2"
transaction-pool = "1.13.3"
sr-primitives = { path = "../../core/sr-primitives" }
[dev-dependencies]