A pure-Rust, no_std compatible PNG decoder.
See examples/basic.rs for basic usage. The decode()
function returns a PNG header and associated byte data, represented as RGBA (8 bits per channel).
- cargo
- rustc
$ cargo build --release
$ cargo test
The formatting options currently use nightly-only options.
$ cargo +nightly fmt
$ cargo clippy
Fuzzing requires a nightly toolchain. Fuzzing for this project is currently confirmed to work with:
+nightly-2020-10-07
cargo install cargo-fuzz
cargo +nightly-2020-10-07 fuzz run png_decoder_fuzzer