QR Core Logic
Technical dive into high-performance QR generation in Rust.
An in-depth exploration of the holi-qr Rust crate, which powers the QR code generation across all Holi.tools applications.
Architecture
The QR generation follows the Core + Adapter pattern:
- holi-qr (Pure Rust): Contains all QR encoding logic
- wasm-qr (WASM Adapter): Thin wrapper exposing the API to JavaScript
Why Rust?
- Performance: 10x faster than pure JavaScript implementations
- Safety: Memory-safe without garbage collection overhead
- Portability: Same logic runs in CLI, WASM, and native apps