Bump dependencies and fix buildbreaks

This commit is contained in:
Michal Budzynski 2018-01-11 12:13:30 +01:00 committed by Michał Budzyński
parent 8a604f51e4
commit 333c8a2bfa
2 changed files with 15 additions and 15 deletions

View file

@ -8,32 +8,32 @@ publish = false
build = "build.rs"
[dependencies]
base64 = "0.7"
base64 = "0.9"
bitflags = "1.0"
byteorder = "1.0"
cc = "1.0.0"
cc = "1.0"
chrono = "0.4"
clap = "2.26"
clap = "2.29"
crossbeam = "0.3"
csv = "1.0.0-beta.5"
data-encoding = "2.0.0-rc.1"
data-encoding = "2.1.0"
env_logger = "0.4"
error-chain = "0.11"
flate2 = "0.2"
flate2 = "1.0"
glob = "0.2"
image = "0.17"
lazy_static = "0.2"
log = "0.3"
log4rs = "0.7"
image = "0.18"
lazy_static = "1.0"
memmap = "0.6"
num = "0.1"
num_cpus = "1.5"
num_cpus = "1.8"
petgraph = "0.4"
rand = "0.3"
rayon = "0.8"
rand = "0.4"
rayon = "0.9"
regex = "0.2"
reqwest = "0.8"
ring = "0.12.0"
ring = "0.13.0-alpha"
same-file = "1.0"
select = "0.4"
semver = "0.9"
@ -44,7 +44,7 @@ tar = "0.4.12"
tempdir = "0.3.5"
threadpool = "1.6"
toml = "0.4"
url = "1.5"
url = "1.6"
walkdir = "2.0"
[target.'cfg(target_os = "linux")'.dependencies]

View file

@ -148,7 +148,7 @@ fn run() -> Result<()> {
// Open a compressed tarball
let tar_gz = File::open(path)?;
// Decompress it
let tar = GzDecoder::new(tar_gz)?;
let tar = GzDecoder::new(tar_gz);
// Load the archive from the tarball
let mut archive = Archive::new(tar);
// Unpack the archive inside curent working directory
@ -192,7 +192,7 @@ use flate2::write::GzEncoder;
fn run() -> Result<()> {
let tar_gz = File::create("archive.tar.gz")?;
let enc = GzEncoder::new(tar_gz, Compression::Default);
let enc = GzEncoder::new(tar_gz, Compression::default());
let mut tar = tar::Builder::new(enc);
tar.append_dir_all("backup/logs", "/var/log")?;
Ok(())
@ -233,7 +233,7 @@ use tar::Archive;
fn run() -> Result<()> {
let file = File::open("archive.tar.gz")?;
let mut archive = Archive::new(GzDecoder::new(file)?);
let mut archive = Archive::new(GzDecoder::new(file));
let prefix = "bundle/logs";
println!("Extracted the following files:");