chore: bump bzip2 from 0.3.3 to 0.4.3 (#18361)

* chore: bump bzip2 from 0.3.3 to 0.4.3

Bumps [bzip2](https://github.com/alexcrichton/bzip2-rs) from 0.3.3 to 0.4.3.
- [Release notes](https://github.com/alexcrichton/bzip2-rs/releases)
- [Commits](https://github.com/alexcrichton/bzip2-rs/commits)

---
updated-dependencies:
- dependency-name: bzip2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* [auto-commit] Update all Cargo lock files

* Update to new api

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
This commit is contained in:
dependabot[bot] 2021-07-01 13:10:52 -06:00 committed by GitHub
parent f4fb5de545
commit 0426c2d28e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 15 additions and 15 deletions

8
Cargo.lock generated
View File

@ -546,9 +546,9 @@ checksum = "81a18687293a1546b67c246452202bbbf143d239cb43494cc163da14979082da"
[[package]] [[package]]
name = "bzip2" name = "bzip2"
version = "0.3.3" version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42b7c3cbf0fa9c1b82308d57191728ca0256cb821220f4e2fd410a72ade26e3b" checksum = "6afcd980b5f3a45017c57e57a2fcccbb351cc43a356ce117ef760ef8052b89b0"
dependencies = [ dependencies = [
"bzip2-sys", "bzip2-sys",
"libc", "libc",
@ -556,9 +556,9 @@ dependencies = [
[[package]] [[package]]
name = "bzip2-sys" name = "bzip2-sys"
version = "0.1.9+1.0.8" version = "0.1.11+1.0.8"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ad3b39a260062fca31f7b0b12f207e8f2590a67d32ec7d59c20484b07ea7285e" checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc"
dependencies = [ dependencies = [
"cc", "cc",
"libc", "libc",

View File

@ -10,7 +10,7 @@ documentation = "https://docs.rs/solana-download-utils"
edition = "2018" edition = "2018"
[dependencies] [dependencies]
bzip2 = "0.3.3" bzip2 = "0.4.3"
console = "0.14.1" console = "0.14.1"
indicatif = "0.16.2" indicatif = "0.16.2"
log = "0.4.14" log = "0.4.14"

View File

@ -12,7 +12,7 @@ documentation = "https://docs.rs/solana-install"
[dependencies] [dependencies]
atty = "0.2.11" atty = "0.2.11"
bincode = "1.3.3" bincode = "1.3.3"
bzip2 = "0.3.3" bzip2 = "0.4.3"
chrono = { version = "0.4.11", features = ["serde"] } chrono = { version = "0.4.11", features = ["serde"] }
clap = { version = "2.33.1" } clap = { version = "2.33.1" }
console = "0.14.1" console = "0.14.1"

View File

@ -342,9 +342,9 @@ checksum = "b700ce4376041dcd0a327fd0097c41095743c4c8af8887265942faf1100bd040"
[[package]] [[package]]
name = "bzip2" name = "bzip2"
version = "0.3.3" version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42b7c3cbf0fa9c1b82308d57191728ca0256cb821220f4e2fd410a72ade26e3b" checksum = "6afcd980b5f3a45017c57e57a2fcccbb351cc43a356ce117ef760ef8052b89b0"
dependencies = [ dependencies = [
"bzip2-sys", "bzip2-sys",
"libc", "libc",
@ -352,9 +352,9 @@ dependencies = [
[[package]] [[package]]
name = "bzip2-sys" name = "bzip2-sys"
version = "0.1.9+1.0.8" version = "0.1.11+1.0.8"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ad3b39a260062fca31f7b0b12f207e8f2590a67d32ec7d59c20484b07ea7285e" checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc"
dependencies = [ dependencies = [
"cc", "cc",
"libc", "libc",

View File

@ -15,7 +15,7 @@ bincode = "1.3.3"
blake3 = "0.3.8" blake3 = "0.3.8"
bv = { version = "0.11.1", features = ["serde"] } bv = { version = "0.11.1", features = ["serde"] }
byteorder = "1.4.3" byteorder = "1.4.3"
bzip2 = "0.3.3" bzip2 = "0.4.3"
dashmap = { version = "4.0.2", features = ["rayon", "raw-api"] } dashmap = { version = "4.0.2", features = ["rayon", "raw-api"] }
crossbeam-channel = "0.5" crossbeam-channel = "0.5"
dir-diff = "0.3.2" dir-diff = "0.3.2"

View File

@ -362,7 +362,7 @@ pub fn archive_snapshot_package(
match snapshot_package.archive_format { match snapshot_package.archive_format {
ArchiveFormat::TarBzip2 => { ArchiveFormat::TarBzip2 => {
let mut encoder = let mut encoder =
bzip2::write::BzEncoder::new(archive_file, bzip2::Compression::Best); bzip2::write::BzEncoder::new(archive_file, bzip2::Compression::best());
io::copy(tar_output, &mut encoder)?; io::copy(tar_output, &mut encoder)?;
let _ = encoder.finish()?; let _ = encoder.finish()?;
} }

View File

@ -10,7 +10,7 @@ edition = "2018"
publish = false publish = false
[dependencies] [dependencies]
bzip2 = "0.3.3" bzip2 = "0.4.3"
clap = "2.33.3" clap = "2.33.3"
regex = "1.5.4" regex = "1.5.4"
cargo_metadata = "0.13.1" cargo_metadata = "0.13.1"

View File

@ -13,7 +13,7 @@ edition = "2018"
arc-swap = "0.4.8" arc-swap = "0.4.8"
backoff = { version = "0.3.0", features = ["tokio"] } backoff = { version = "0.3.0", features = ["tokio"] }
bincode = "1.3.3" bincode = "1.3.3"
bzip2 = "0.3.3" bzip2 = "0.4.3"
enum-iterator = "0.6.0" enum-iterator = "0.6.0"
flate2 = "1.0.20" flate2 = "1.0.20"
goauth = "0.10.0" goauth = "0.10.0"

View File

@ -49,7 +49,7 @@ pub fn compress(method: CompressionMethod, data: &[u8]) -> Result<Vec<u8>, io::E
compressed_data.extend( compressed_data.extend(
match method { match method {
CompressionMethod::Bzip2 => { CompressionMethod::Bzip2 => {
let mut e = bzip2::write::BzEncoder::new(Vec::new(), bzip2::Compression::Best); let mut e = bzip2::write::BzEncoder::new(Vec::new(), bzip2::Compression::best());
e.write_all(data)?; e.write_all(data)?;
e.finish()? e.finish()?
} }