A qr generator written in Rust. QR codes encode data into a image that can be scanned.
The generator works and is also well tested. This crate is split into library (qrgen
)
and binary (qr
) modules. To run, simply use cargo run
.
Generation steps:
- Determine which encoding mode to use
- Encode the data
- Generate error correction codewords
- Interleave blocks if necessary
- Place the data and error correction bits in the matrix
- Apply the mask patterns and determine which one results in the lowest penalty
- Add format and version information
Docs: