Update to zstd-1.4.x

Summary:
* Update to zstd-1.4.x
* Update to the latest zstd-rs

Reviewed By: Cyan4973

Differential Revision: D15040909

fbshipit-source-id: 938904d95ab8b1108d750d83602ee9c11c2c87b5
This commit is contained in:
Nick Terrell 2019-04-23 22:37:32 -07:00 committed by Facebook Github Bot
parent baacd19749
commit ebdf5f1baf
4 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ failure = "0.1.3"
clap = "2.32.0"
log = "0.4.6"
env_logger = "0.6.0"
toml = "0.4.8"
toml = "0.5.0"
serde = "1.0.80"
serde_derive = "1.0.80"

View File

@ -10,7 +10,7 @@ failure = "0.1"
libc = "0.2" # version taken from fbcode/third-party2/.../crates.io/..
serde = "1.0"
serde_derive = "1.0"
toml = "0.4"
toml = "0.5"
[dependencies.telemetry]
path = "../../../telemetry/telemetry"

View File

@ -4,7 +4,7 @@ version = "0.1.0"
[dependencies]
libc = "0.2.43" # keep it in sync with zstd-sys
zstd-sys = "= 1.4.6+zstd.1.3.7" # pinned. zstd advanced API changes rapidly
zstd-sys = { version = "= 1.4.10+zstd.1.4.0", features = ["experimental"] } # pinned. zstd advanced API changes rapidly
[dev-dependencies]
quickcheck = "0.6"

View File

@ -52,7 +52,7 @@ pub fn diff(base: &[u8], data: &[u8]) -> io::Result<Vec<u8>> {
chainLog: ZSTD_CHAINLOG_MIN, // useless using "fast" strategy
hashLog: hlog,
searchLog: ZSTD_SEARCHLOG_MIN, // useless using "fast" strategy
searchLength: 7, // level 1 default (see ZSTD_defaultCParameters)
minMatch: 7, // level 1 default (see ZSTD_defaultCParameters)
targetLength: 0, // enable huffman compression of literals (for "fast" strategy)
strategy: ZSTD_strategy::ZSTD_fast,
};