A QR Code generator in Rust, written from scratch, ISO/IEC 18004-compliant. Includes a core encoder, CLI, and HTTP Service.
- Optimal Text Segmentation
- Data Encoding
- Error Correction Coding
- Structure Final Message
- Module Placement in Matrix
- Data Masking
- Format and Version Information
- QR Code CLI implementation
- QR Code SVG renderer
- QR Code PNG renderer
- QR Code API server
I use the following references to research, implement and take inspiration from, with all due credit.
- Denso wave's QR Code product page
- Thonky.com's QR Code tutorial
- Project Nayuki's Optimal text segmentation for QR codes
I have used the following "AI" tools in the specified capacity.
- Anthropic's Claude:
- Claude Code was used in
optimal_segmentation.rsto correct the methodprobe_ecc_level_raise. - Claude Code was used in
encoding.rsto introduce theVersionstruct and remove redundant error handlings. - Claude chat was used to understand the Optimal Text Segmentation and develop the algorithm to implement.
- Claude Code was used in optimal_segmenation/tests.rs to write comprehensive test cases for all the text segmenation scenarios.
- Claude Code was used in
- Google's Gemini:
- Google's Gemini answers questions that you google about, so some sideline and Rust syntax research were done on Geimini in the way to normal googling.