Skip to main content

rosetta_squint_decode/
lib.rs

1//! rosetta-squint-decode — byte-exact PIL-compatible image decoders.
2//!
3//! v0.1.0 supports BMP + PNG. See SPEC.md in the shared /spec/ directory.
4
5// Newer clippy versions (Rust 1.95+) tighten some style lints in ways
6// that conflict with the FFI/decoder-style code in this crate. Suppress
7// the noisy ones at the crate level; the substantive lints (correctness,
8// suspicious, perf) remain enabled.
9#![allow(clippy::collapsible_if)]
10#![allow(clippy::implicit_saturating_sub)]
11#![allow(clippy::same_item_push)]
12#![allow(clippy::unnecessary_cast)]
13
14mod bmp;
15mod gif;
16mod heic;
17mod heicwasm;
18mod jpeg;
19mod png;
20mod tiff;
21mod webp;
22mod decode;
23pub(crate) mod dimension_sniff;
24mod error;
25pub(crate) mod limits;
26mod types;
27
28pub use decode::{decode, detect_format, supported_formats};
29pub use error::{DecodeError, DecodeErrorKind};
30pub use limits::MAX_PIXELS;
31pub use types::{Channels, DecodedImage, Format};