png-decoder

Crates.iopng-decoder
lib.rspng-decoder
version0.1.1
sourcesrc
created_at2021-01-03 18:59:02.741841
updated_at2022-10-09 02:34:47.255463
descriptionA pure-Rust, no_std compatible PNG decoder.
homepagehttps://github.com/bschwind/png-decoder
repositoryhttps://github.com/bschwind/png-decoder
max_upload_size
id331152
size74,316
Brian Schwind (bschwind)

documentation

https://docs.rs/png-decoder

README

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
Commit count: 56

cargo fmt