3 unstable releases
| 0.2.0 | Oct 2, 2025 |
|---|---|
| 0.1.1 | Oct 9, 2022 |
| 0.1.0 | Jan 3, 2021 |
#78 in Images
11,647 downloads per month
Used in 11 crates
(4 directly)
39KB
824 lines
png-decoder
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).
Dependencies
- cargo
- rustc
Build
$ cargo build --release
Testing
$ cargo test
Code Format
The formatting options currently use nightly-only options.
$ cargo +nightly fmt
Code Linting
$ cargo clippy
Code Fuzzing
Fuzzing requires a nightly toolchain. Fuzzing for this project is currently confirmed to work with:
+nightly-2020-10-07
Running
cargo install cargo-fuzz
cargo +nightly-2020-10-07 fuzz run png_decoder_fuzzer
Dependencies
~0.4–0.9MB
~18K SLoC