qrcode-render
Built-in buffered renderers check their estimated backing buffers and output
against a 256 MiB budget before allocation. Use Renderer::try_build to receive
RenderError::OutputTooLarge for requests that exceed the budget; build panics
on validation errors. Custom canvases can provide their own limits through
Canvas::validate_dimensions. These checks estimate sizes and do not guarantee
that an allocator can satisfy a request under memory pressure.
qrcode-render contains the shared QR rendering traits and built-in text,
Unicode, ANSI, color, and template helpers used by
qrcode-rs.
Most users should render through the facade crate:
[]
= "2.0"
Depend on qrcode-render directly when implementing a renderer backend,
building a plugin, or keeping rendering code separate from the high-level
encoder facade.
[]
= "2.0"
Features
| Feature | Purpose |
|---|---|
std |
Opts into the standard library. Disabled by default. |
image |
Enables the image backend implementation and PNG/JPEG support. |
Companion Backends
Format-specific vector backends live in separate crates:
qrcode-image, qrcode-svg, qrcode-eps, qrcode-pic, qrcode-html, and
qrcode-pdf. Use qrcode-image when you want the image backend as a focused
dependency; its API re-exports this crate's image implementation.