mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-09 03:51:47 +00:00
tests/mutation.rs runs a seeded mutation pass over the test images and small SOF9, SOF10 and 12-bit seeds, checking that decode never panics and stays within small limits. fuzz/ is a cargo-fuzz crate (own workspace) with a decode target and those seeds. jpeg.yml runs fmt, clippy, tests and a wasm32 check on Linux. The README gains a testing section.
24 lines
439 B
TOML
24 lines
439 B
TOML
[package]
|
|
name = "craft-jpeg-fuzz"
|
|
version = "0.0.0"
|
|
publish = false
|
|
edition = "2024"
|
|
|
|
[package.metadata]
|
|
cargo-fuzz = true
|
|
|
|
[dependencies]
|
|
libfuzzer-sys = "0.4"
|
|
craft-jpeg = { path = ".." }
|
|
|
|
# Its own workspace: cargo-fuzz needs nightly and sanitizer flags, so this crate stays out of the
|
|
# craft-libs workspace and its lockfile.
|
|
[workspace]
|
|
|
|
[[bin]]
|
|
name = "decode"
|
|
path = "fuzz_targets/decode.rs"
|
|
test = false
|
|
doc = false
|
|
bench = false
|