laminapdf-render 0.2.0-alpha.3

The RenderBackend trait (ADR 0004): bounded RGBA tiles of a page at a scale, with request validation, render limits and cancellation, and the pure-Rust hayro adapter behind a feature (pure, bytes in / bytes out).
Documentation
//! The render backend contract ([ADR 0004]): every Lamina PDF surface renders pages through
//! [`RenderBackend`] and [`RenderDocument`], which draw bounded tiles of a page at a scale into
//! a caller-supplied straight-alpha RGBA8 buffer.
//!
//! - Requests are validated once, by [`TilePlan::new`], so every backend agrees on sizes and
//!   refuses oversized tiles (`render-too-large`) before allocating.
//! - The pure-Rust adapter, [`HayroBackend`], is behind the `hayro` feature: ADR 0004's CI
//!   oracle and debug choice. The PDFium adapter is the edge crate `laminapdf-render-pdfium`.
//! - Errors follow the ADR 0026 contract ([`RenderError`]).
//!
//! [ADR 0004]: https://github.com/laudebugs/laminapdf/blob/main/docs/decisions/0004-render-backend.md
#![forbid(unsafe_code)]

mod backend;
mod error;
#[cfg(feature = "hayro")]
mod hayro;
mod request;
mod source;

pub use backend::{RenderBackend, RenderDocument};
pub use error::RenderError;
#[cfg(feature = "hayro")]
pub use hayro::HayroBackend;
pub use laminapdf_cos::{ByteSource, SourceError, merge_ranges};
pub use laminapdf_model::Matrix;
pub use laminapdf_syntax::{CancelToken, Rotation};
pub use request::{
    BYTES_PER_PIXEL, PixelRect, RenderFlags, RenderLimits, RenderOpenOptions, RenderPage, RenderRequest, Rgba8,
    TilePlan,
};
pub use source::read_all;