| 1 | [package] |
| 2 | name = "miniz_oxide" |
| 3 | authors = ["Frommi <daniil.liferenko@gmail.com>" , "oyvindln <oyvindln@users.noreply.github.com>" , "Rich Geldreich richgel99@gmail.com" ] |
| 4 | version = "0.8.8" |
| 5 | license = "MIT OR Zlib OR Apache-2.0" |
| 6 | readme = "Readme.md" |
| 7 | keywords = ["zlib" , "miniz" , "deflate" , "encoding" ] |
| 8 | categories = ["compression" ] |
| 9 | repository = "https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide" |
| 10 | homepage = "https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide" |
| 11 | documentation = "https://docs.rs/miniz_oxide" |
| 12 | description = "DEFLATE compression and decompression library rewritten in Rust based on miniz" |
| 13 | edition = "2021" |
| 14 | exclude = ["benches/*" , "tests/*" ] |
| 15 | |
| 16 | [lib] |
| 17 | name = "miniz_oxide" |
| 18 | |
| 19 | [dependencies] |
| 20 | adler2 = { version = "2.0" , default-features = false } |
| 21 | simd-adler32 = { version = "0.3.3" , default-features = false, optional = true } |
| 22 | serde = { version = "1.0" , features = ["derive" ], optional = true } |
| 23 | |
| 24 | # Internal feature, only used when building as part of libstd, not part of the |
| 25 | # stable interface of this crate. |
| 26 | core = { version = '1.0.0' , optional = true, package = 'rustc-std-workspace-core' } |
| 27 | alloc = { version = '1.0.0' , optional = true, package = 'rustc-std-workspace-alloc' } |
| 28 | compiler_builtins = { version = '0.1.2' , optional = true } |
| 29 | |
| 30 | |
| 31 | [dev-dependencies] |
| 32 | ## Messes with minimum rust version and drags in deps just for running tests |
| 33 | ## so just comment out for now and enable manually when needed for enabling benches |
| 34 | # criterion = "0.5" |
| 35 | |
| 36 | [[bench]] |
| 37 | name = "benchmark" |
| 38 | harness = false |
| 39 | |
| 40 | [features] |
| 41 | default = ["with-alloc" ] |
| 42 | with-alloc = [] |
| 43 | std = [] |
| 44 | block-boundary = [] |
| 45 | |
| 46 | # Internal feature, only used when building as part of libstd, not part of the |
| 47 | # stable interface of this crate. |
| 48 | rustc-dep-of-std = ['core' , 'alloc' , 'compiler_builtins' , 'adler2/rustc-dep-of-std' ] |
| 49 | |
| 50 | simd = ['simd-adler32' ] |
| 51 | |
| 52 | # Disable unexpected cfg name warning from to !cfg(fuzzing) - compiler is not aware of the fuzzing feature since it comes from the environment |
| 53 | # see https://github.com/rust-fuzz/cargo-fuzz/issues/372 |
| 54 | [lints.rust] |
| 55 | unexpected_cfgs = { level = "warn" , check-cfg = ['cfg(fuzzing)' ] } |
| 56 | |