diff --git a/Cargo.lock b/Cargo.lock index 98af4b91a07..c4199a142ea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -141,7 +141,7 @@ dependencies = [ "docopt 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)", "dotenv 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)", "env_logger 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", - "flate2 0.2.20 (registry+https://github.com/rust-lang/crates.io-index)", + "flate2 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "git2 0.6.8 (registry+https://github.com/rust-lang/crates.io-index)", "hex 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -653,6 +653,15 @@ dependencies = [ "miniz-sys 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "flate2" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "libc 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)", + "miniz-sys 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "fnv" version = "1.0.6" @@ -2091,6 +2100,7 @@ dependencies = [ "checksum filetime 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)" = "aa75ec8f7927063335a9583e7fa87b0110bb888cf766dc01b54c0ff70d760c8e" "checksum filetime 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "da4b9849e77b13195302c174324b5ba73eec9b236b24c221a61000daefb95c5f" "checksum flate2 0.2.20 (registry+https://github.com/rust-lang/crates.io-index)" = "e6234dd4468ae5d1e2dbb06fe2b058696fdc50a339c68a393aefbf00bc81e423" +"checksum flate2 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "9fac2277e84e5e858483756647a9d0aa8d9a2b7cba517fd84325a0aaa69a0909" "checksum fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "2fad85553e09a6f881f739c29f0b00b0f01357c743266d478b68951ce23285f3" "checksum foreign-types 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" "checksum foreign-types-shared 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" diff --git a/Cargo.toml b/Cargo.toml index 898e16501ad..624818f7760 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,7 @@ rustdoc-args = [ cargo-registry-s3 = { path = "src/s3", version = "0.2.0" } rand = "0.3" git2 = "0.6.4" -flate2 = "0.2" +flate2 = "1.0" semver = "0.5" url = "1.2.1" tar = "0.4.13" diff --git a/src/bin/render-readmes.rs b/src/bin/render-readmes.rs index 546b36c453a..75749b17b64 100644 --- a/src/bin/render-readmes.rs +++ b/src/bin/render-readmes.rs @@ -220,10 +220,7 @@ fn get_readme(config: &Config, version: &Version, krate_name: &str) -> Option Vec { let mut tarball = Vec::new(); { - let mut ar = tar::Builder::new(GzEncoder::new(&mut tarball, Compression::Default)); + let mut ar = tar::Builder::new(GzEncoder::new(&mut tarball, Compression::default())); for &mut (name, ref mut data, size) in files { let mut header = tar::Header::new_gnu(); t!(header.set_path(name)); diff --git a/src/uploaders.rs b/src/uploaders.rs index 3790c22f06e..d08e36d8f40 100644 --- a/src/uploaders.rs +++ b/src/uploaders.rs @@ -250,7 +250,7 @@ fn verify_tarball( max_unpack: u64, ) -> CargoResult<()> { // All our data is currently encoded with gzip - let decoder = GzDecoder::new(tarball)?; + let decoder = GzDecoder::new(tarball); // Don't let gzip decompression go into the weeeds, apply a fixed cap after // which point we say the decompressed source is "too large".