webp/api/mod.rs
1//! Safe Rust API over the translation, separate from the C ABI in [`crate::abi`].
2//!
3//! [`encode`] wraps the encoder (WP17, `docs/adr/0006-safe-encoder-api.md`) and
4//! [`decode`] the decoder (WP16). The API validates its input before it calls
5//! the translation, returns `Result` errors and adds no codec behavior: an
6//! encoding is byte-identical to the translated `WebPEncode` with the same
7//! configuration. Each module's header names the work package that owns it.
8//! WP17 added this file and the module list in `tools/units.json`; work
9//! packages do not edit it.
10
11pub mod decode;
12pub mod encode;