zstd-rs/Cargo.toml

44 lines
1.1 KiB
TOML
Raw Normal View History

2016-02-21 10:01:51 +00:00
[package]
authors = ["Alexandre Bury <alexandre.bury@gmail.com>"]
2016-08-03 17:44:08 +00:00
description = "Binding for the zstd compression library."
documentation = "https://docs.rs/zstd"
keywords = ["zstd", "zstandard", "compression"]
categories = ["compression", "api-bindings"]
2016-02-21 10:01:51 +00:00
license = "MIT"
name = "zstd"
2016-08-18 21:20:53 +00:00
repository = "https://github.com/gyscos/zstd-rs"
2022-01-21 21:05:01 +00:00
version = "0.10.0+zstd.1.5.2"
exclude = ["assets/*.zst"]
2017-06-05 04:45:38 +00:00
readme = "Readme.md"
2019-10-03 21:53:46 +00:00
edition = "2018"
2016-02-21 10:01:51 +00:00
2021-03-23 16:04:17 +00:00
[package.metadata.docs.rs]
2022-01-14 16:44:18 +00:00
features = ["experimental", "zstdmt", "doc-cfg"]
2021-03-23 16:04:17 +00:00
[badges]
travis-ci = { repository = "gyscos/zstd-rs" }
[dependencies]
2022-01-21 17:53:45 +00:00
zstd-safe = { path = "zstd-safe", version = "=4.1.4", default-features = false, features = ["std"] }
[dev-dependencies]
2022-01-06 18:33:21 +00:00
clap = "3.0"
2017-12-18 16:41:03 +00:00
humansize = "1.0"
partial-io = "0.5"
2019-04-16 23:18:35 +00:00
walkdir = "2.2"
[features]
default = ["legacy", "arrays"]
2020-06-15 17:13:29 +00:00
bindgen = ["zstd-safe/bindgen"]
add debug feature to enable zstd debug logs (#99) ZSTD sometimes doesn't output very helpful information by default. This adds a feature to enable debug logging from zstd. before: ``` training dict of size 1503kB with 196608 samples of total size 150338kB (of 196608 samples seen) Error: Training dictionary failed Caused by: Error (generic) ``` what is happen??!! after with features = ["debug"]: ``` [2020-12-20T16:16:04Z DEBUG sqlite_zstd::dict_training] training dict of size 1503kB with 196608 samples of total size 150338kB (of 196608 samples seen) zstd/lib/dictBuilder/zdict.c: ZDICT_trainFromBuffer Trying 5 different sets of parameters d=8 Training on 147456 samples of total size 100940410 Testing on 49152 samples of total size 49397760 Computing frequencies k=50 Breaking content into 30067 epochs of size 3357 zstd/lib/dictBuilder/zdict.c: ZDICT_finalizeDictionary Failed to select dictionary 20% k=537 Breaking content into 2799 epochs of size 36063 zstd/lib/dictBuilder/zdict.c: ZDICT_finalizeDictionary Failed to select dictionary 40% k=1024 Breaking content into 1468 epochs of size 68760 zstd/lib/dictBuilder/zdict.c: ZDICT_finalizeDictionary Failed to select dictionary 60% k=1511 Breaking content into 994 epochs of size 101549 zstd/lib/dictBuilder/zdict.c: ZDICT_finalizeDictionary Failed to select dictionary 80% k=1998 Breaking content into 752 epochs of size 134229 zstd/lib/dictBuilder/zdict.c: ZDICT_finalizeDictionary Failed to select dictionary Error: Training dictionary failed Caused by: Error (generic) ```
2020-12-20 16:55:57 +00:00
debug = ["zstd-safe/debug"]
2020-06-15 17:13:29 +00:00
legacy = ["zstd-safe/legacy"]
pkg-config = ["zstd-safe/pkg-config"]
wasm = []
zstdmt = ["zstd-safe/zstdmt"]
2021-03-23 16:04:17 +00:00
experimental = ["zstd-safe/experimental"]
thin = ["zstd-safe/thin"]
arrays = ["zstd-safe/arrays"]
no_asm = ["zstd-safe/no_asm"]
2022-01-14 16:44:18 +00:00
doc-cfg = []