|
|
[package]
|
|
|
summary = "Brotli compressor and decompressor with no_std support"
|
|
|
cargo-toml-patch-comments = [
|
|
|
"""\
|
|
|
Exclude files that are only useful for upstream development: \
|
|
|
https://github.com/dropbox/rust-brotli/pull/43\
|
|
|
""",
|
|
|
]
|
|
|
# The brotli binary would conflict with the one provided by the brotli package.
|
|
|
# The catbrotli binary would not, so we *could* install it, but it doesn’t seem
|
|
|
# useful enough to bother.
|
|
|
cargo-install-bin = false
|
|
|
|
|
|
[features]
|
|
|
hide = [
|
|
|
# The benchmark feature makes no sense for external users, and would
|
|
|
# require the corresponding feature in the brotli-decompressor crate, which
|
|
|
# in turn would require a test data corpus.
|
|
|
"benchmark",
|
|
|
]
|
|
|
|
|
|
[scripts.check]
|
|
|
pre = [
|
|
|
"%if 0%{?__isa_bits} != 32",
|
|
|
]
|
|
|
post = [
|
|
|
"%else",
|
|
|
"# Few tests fail with OOM on 32bit",
|
|
|
"# https://github.com/dropbox/rust-brotli/issues/42",
|
|
|
"# A fix was included in 7.0.0, but it was not entirely successful:",
|
|
|
"# https://github.com/dropbox/rust-brotli/issues/42#issuecomment-2388527527",
|
|
|
"skip=\"${skip-} --skip enc::test::test_roundtrip_10x10y\"",
|
|
|
"skip=\"${skip-} --skip enc::test::test_roundtrip_64x\"",
|
|
|
"skip=\"${skip-} --skip enc::test::test_roundtrip_asyoulik\"",
|
|
|
"skip=\"${skip-} --skip enc::test::test_roundtrip_asyoulik9_5\"",
|
|
|
"skip=\"${skip-} --skip enc::test::test_roundtrip_backward65536\"",
|
|
|
"skip=\"${skip-} --skip enc::test::test_roundtrip_compressed_repeated\"",
|
|
|
"skip=\"${skip-} --skip enc::test::test_roundtrip_monkey\"",
|
|
|
"skip=\"${skip-} --skip enc::test::test_roundtrip_quickfox\"",
|
|
|
"skip=\"${skip-} --skip enc::test::test_roundtrip_quickfox_repeated\"",
|
|
|
"skip=\"${skip-} --skip enc::test::test_roundtrip_ukkonooa\"",
|
|
|
"skip=\"${skip-} --skip enc::test::test_roundtrip_x\"",
|
|
|
"%cargo_test -- -- --exact ${skip-}",
|
|
|
"%endif",
|
|
|
]
|
|
|
|
|
|
[[package.extra-patches]]
|
|
|
number = 10
|
|
|
file = "https://github.com/dropbox/rust-brotli/pull/219.patch"
|
|
|
comments = [
|
|
|
"Remove unwanted executable permission from src/enc/test.rs",
|
|
|
]
|