Skip to main content

Crate qrcode_core

Crate qrcode_core 

Source
Expand description

Zero-dependency QR code encoding core (no_std + alloc) for qrcode-rs.

Holds the encoding primitive layer — bit-stream construction (bits::Bits), mode optimization (optimize), Reed–Solomon error correction (ec), and module-grid canvas drawing (canvas) — plus the shared types (types) and checked-cast helpers (cast), with no external crate dependencies. The qrcode-rs facade crate depends on this and re-exports its public surface; embedders wanting only the encoder (no rendering or image dependencies) can depend on qrcode-core directly.

Re-exports§

pub use cast::As;
pub use cast::Truncate;
pub use mode::AlphanumericMode;
pub use mode::ByteMode;
pub use mode::EncodingMode;
pub use mode::KanjiMode;
pub use mode::NumericMode;
pub use plugin::DynEncoder;
pub use plugin::DynRenderer;
pub use plugin::EncodeConfig;
pub use plugin::EncodedOutput;
pub use plugin::EncoderFactory;
pub use plugin::ModuleGrid;
pub use plugin::PluginError;
pub use plugin::PluginRegistry;
pub use plugin::PostProcessor;
pub use plugin::QrPlugin;
pub use plugin::RenderConfig;
pub use plugin::RenderOutput;
pub use plugin::RendererFactory;
pub use traits::Builder;
pub use traits::Encoder;
pub use traits::ModuleSource;
pub use traits::ModuleStorage;
pub use traits::ModuleView;
pub use traits::QrCodeRef;
pub use traits::QrSymbol;
pub use traits::Renderer;
pub use types::Color;
pub use types::EcLevel;
pub use types::Mode;
pub use types::QrError;
pub use types::QrResult;
pub use types::Version;
pub use version::ConstVersion;
pub use version::StaticVersion;

Modules§

bits
Bit-level data encoding for QR codes.
canvas
QR code canvas construction and masking.
cast
Checked narrowing conversions and truncation helpers used across the encoder.
ec
Reed-Solomon error correction for QR codes.
mode
Type-level QR encoding modes.
optimize
Data mode segmentation optimizer.
plugin
Explicit plugin registry and object-safe extension points.
traits
Core extension traits for encoding, rendering, and module-grid storage.
types
Core data types: module Color, EcLevel, Version, Mode, the QrError / QrResult error types, and string-parsing helpers.
version
Compile-time QR version markers.