|
|
[package]
|
|
|
summary = "Brotli compressor and decompressor with no_std support"
|
|
|
cargo-toml-patch-comments = [
|
|
|
"""\
|
|
|
Adjust license from BSD-3-Clause/MIT to BSD-3-Clause AND MIT; see \
|
|
|
https://github.com/dropbox/rust-brotli/issues/41, \
|
|
|
https://github.com/dropbox/rust-brotli/pull/218 (which was merged \
|
|
|
upstream), and Patch10. See also the similar PR
|
|
|
https://github.com/dropbox/rust-brotli-decompressor/pull/32, which was
|
|
|
merged, but note comments in https://github.com/dropbox/rust-brotli/pull/218: \
|
|
|
we should be attentive to future improvements or corrections to the license \
|
|
|
texts.\
|
|
|
""",
|
|
|
"""\
|
|
|
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.prep]
|
|
|
pre = [
|
|
|
"# Remove executable flag from .rs files",
|
|
|
"# https://github.com/dropbox/rust-brotli/pull/181",
|
|
|
"find -type f -name '*.rs' -executable -exec chmod -x '{}' +",
|
|
|
]
|
|
|
|
|
|
[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",
|
|
|
"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 = "brotli-6.0.0-license-accuracy.patch"
|
|
|
comments = [
|
|
|
"""\
|
|
|
Adjust license to reflect a MIT-only source, and add a MIT license file \
|
|
|
(https://github.com/dropbox/rust-brotli/pull/218), without the \
|
|
|
changes to Cargo.toml (which are applied manually to the normalized \
|
|
|
Cargo.toml in the crate).\
|
|
|
"""
|
|
|
]
|