[package]
edition = "2024"
rust-version = "1.85"
name = "zrip"
version = "0.3.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure Rust zstd codec: Fast/DFast strategies (levels -7..4), COVER/FastCOVER dict builder"
readme = "README.md"
keywords = [
"zstd",
"zstandard",
"compression",
"decompression",
]
categories = ["compression"]
license = "MIT"
repository = "https://github.com/paddor/zrip"
[features]
alloc = [
"zrip-core/alloc",
"zrip-encode/alloc",
"zrip-decode/alloc",
]
default = [
"std",
"frame",
]
dict_builder = [
"std",
"zrip-core/dict_builder",
]
frame = [
"std",
"zrip-encode/frame",
"zrip-decode/frame",
]
nightly = [
"zrip-core/nightly",
"zrip-encode/nightly",
"zrip-decode/nightly",
]
std = [
"alloc",
"zrip-core/std",
"zrip-encode/std",
"zrip-decode/std",
]
[lib]
name = "zrip"
path = "src/lib.rs"
[[example]]
name = "decode_compare"
path = "examples/decode_compare.rs"
[[example]]
name = "mem_profile"
path = "examples/mem_profile.rs"
[[example]]
name = "profile_czstd"
path = "examples/profile_czstd.rs"
[[example]]
name = "profile_czstd_decode"
path = "examples/profile_czstd_decode.rs"
[[example]]
name = "profile_decode"
path = "examples/profile_decode.rs"
[[example]]
name = "profile_encode"
path = "examples/profile_encode.rs"
[[example]]
name = "profile_xray"
path = "examples/profile_xray.rs"
[[example]]
name = "quickstart"
path = "examples/quickstart.rs"
[[test]]
name = "adversarial"
path = "tests/adversarial.rs"
[[test]]
name = "dict"
path = "tests/dict.rs"
[[test]]
name = "interop"
path = "tests/interop.rs"
[[test]]
name = "proptest_tests"
path = "tests/proptest_tests.rs"
[[test]]
name = "roundtrip"
path = "tests/roundtrip.rs"
[[test]]
name = "streaming"
path = "tests/streaming.rs"
[dependencies.zrip-core]
version = "0.3.1"
default-features = false
[dependencies.zrip-decode]
version = "0.3.1"
default-features = false
[dependencies.zrip-encode]
version = "0.3.1"
default-features = false
[dev-dependencies.libc]
version = "0.2"
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.zstd]
version = "0.13"
[dev-dependencies.zstd-safe]
version = "7"
[lints.clippy]
bool_to_int_with_if = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_ptr_alignment = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
enum_glob_use = "allow"
explicit_iter_loop = "allow"
if_not_else = "allow"
inline_always = "allow"
items_after_statements = "allow"
manual_ilog2 = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_bitwise_bool = "allow"
needless_pass_by_value = "allow"
option_if_let_else = "allow"
ptr_as_ptr = "allow"
ptr_cast_constness = "allow"
redundant_closure_for_method_calls = "allow"
similar_names = "allow"
single_match_else = "allow"
too_many_lines = "allow"
wildcard_imports = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[profile.release]
lto = "thin"
codegen-units = 1