oxipng/tests
Alejandro González be19ed592d
Make dependency on image optional (#498)
* Make dependency on `image` optional

After PR https://github.com/shssoichiro/oxipng/pull/481 was merged, the
`image` dependency became unused when building with debug assertions
disabled, as it is only used to implement output sanity checks when such
assertions are enabled.

The `image` crate transitively pulls a significant amount of
dependencies, so it's useful for OxiPNG users to get rid of them when
not needed.

[Cargo does not allow specifying dependencies that are only pulled when
debug assertions are
enabled](https://github.com/rust-lang/cargo/issues/7634), so the next
best way to give users some flexibility is to gate those debug
assertions behind a feature flag.

These changes add a `sanity-checks` feature flag that controls whether
the `image` crate and the related sanity checks are compiled in. This
feature is enabled by default to keep debug builds useful to catch
problems during development.

* Fix Clippy lints

* Run tests with new sanity-checks feature enabled
2023-04-24 13:24:23 -04:00
..
files Remove test 167 which is no longer relevant 2023-01-06 15:35:05 -05:00
filters.rs New filter strategies (#461) 2022-11-19 08:49:25 -05:00
flags.rs Make dependency on image optional (#498) 2023-04-24 13:24:23 -04:00
interlaced.rs Tweaks to interlacing and format display (#476) 2022-12-12 09:54:35 -05:00
interlacing.rs Tweaks to interlacing and format display (#476) 2022-12-12 09:54:35 -05:00
lib.rs Fix some clippy warnings 2021-06-24 15:57:41 -04:00
reduction.rs Make dependency on image optional (#498) 2023-04-24 13:24:23 -04:00
regression.rs Remove test 167 which is no longer relevant 2023-01-06 15:35:05 -05:00
strategies.rs New filter strategies (#461) 2022-11-19 08:49:25 -05:00