[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 '{}' +", ] [[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).\ """ ] [[package.extra-patches]] number = 11 file = "0001-Fix-32-bit-tests-by-allocating-less-memory-by-runnin.patch" comments = [ """\ Fix 32 bit tests by allocating less memory by running with less parallelism in that case: \ https://github.com/dropbox/rust-brotli/commit/0462558646c0d0c346f7e152377b33e9d9d507af \ (cherry-picked to 6.0.0)\ """ ]