2 releases

0.1.1 Oct 9, 2022
0.1.0 Jan 3, 2021

#344 in Images

Download history 66/week @ 2023-12-11 20/week @ 2023-12-18 45/week @ 2023-12-25 23/week @ 2024-01-01 47/week @ 2024-01-08 66/week @ 2024-01-15 94/week @ 2024-01-22 27/week @ 2024-01-29 81/week @ 2024-02-05 190/week @ 2024-02-12 110/week @ 2024-02-19 189/week @ 2024-02-26 65/week @ 2024-03-04 84/week @ 2024-03-11 132/week @ 2024-03-18 61/week @ 2024-03-25

367 downloads per month
Used in 9 crates (3 directly)

MIT OR Apache-2.0 OR Zlib

39KB
837 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

~1.5MB
~39K SLoC