diff --git a/Cargo.lock b/Cargo.lock index 53226019..d2bd1020 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1228,18 +1228,18 @@ dependencies = [ [[package]] name = "zstd" -version = "0.5.3+zstd.1.4.5" +version = "0.6.0+zstd.1.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01b32eaf771efa709e8308605bbf9319bf485dc1503179ec0469b611937c0cd8" +checksum = "d4e44664feba7f2f1a9f300c1f6157f2d1bfc3c15c6f3cf4beabf3f5abe9c237" dependencies = [ "zstd-safe", ] [[package]] name = "zstd-safe" -version = "2.0.5+zstd.1.4.5" +version = "3.0.0+zstd.1.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cfb642e0d27f64729a639c52db457e0ae906e7bc6f5fe8f5c453230400f1055" +checksum = "d9447afcd795693ad59918c7bbffe42fdd6e467d708f3537e3dc14dc598c573f" dependencies = [ "libc", "zstd-sys", @@ -1247,9 +1247,9 @@ dependencies = [ [[package]] name = "zstd-sys" -version = "1.4.17+zstd.1.4.5" +version = "1.4.19+zstd.1.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b89249644df056b522696b1bb9e7c18c87e8ffa3e2f0dc3b0155875d6498f01b" +checksum = "ec24a9273d24437afb8e71b16f3d9a5d569193cccdb7896213b59f552f387674" dependencies = [ "cc", "glob", diff --git a/Cargo.toml b/Cargo.toml index f9a9cf15..9fcf8dee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,8 +46,8 @@ flate2 = { version = "1.0.11", optional = true } futures-core = { version = "0.3.0", default-features = false } futures-io = { version = "0.3.0", default-features = false, features = ["std"], optional = true } pin-project-lite = "0.2.0" -libzstd = { package = "zstd", version = "0.5.0", optional = true, default-features = false } -zstd-safe = { version = "2.0.0", optional = true, default-features = false } +libzstd = { package = "zstd", version = "0.6.0", optional = true, default-features = false } +zstd-safe = { version = "3.0.0", optional = true, default-features = false } memchr = "2.2.1" tokio-02 = { package = "tokio", version = "0.2.21", optional = true, default-features = false } tokio-03 = { package = "tokio", version = "0.3.0", optional = true, default-features = false } diff --git a/src/codec/zstd/decoder.rs b/src/codec/zstd/decoder.rs index 1940dbd2..3fc9e52b 100644 --- a/src/codec/zstd/decoder.rs +++ b/src/codec/zstd/decoder.rs @@ -5,7 +5,7 @@ use libzstd::stream::raw::{Decoder, Operation}; #[derive(Debug)] pub struct ZstdDecoder { - decoder: Unshared, + decoder: Unshared>, } impl ZstdDecoder { diff --git a/src/codec/zstd/encoder.rs b/src/codec/zstd/encoder.rs index 9f581dac..34407abc 100644 --- a/src/codec/zstd/encoder.rs +++ b/src/codec/zstd/encoder.rs @@ -4,7 +4,7 @@ use std::io::Result; #[derive(Debug)] pub struct ZstdEncoder { - encoder: Unshared, + encoder: Unshared>, } impl ZstdEncoder {