Releases: erwanvivien/fast_qr
Releases · erwanvivien/fast_qr
v0.7 - Reduced wasm size & added rust features
Fix
- A huge bug was discovered: QR transpose was computed on the empty QRCode not on the filled one. Resulting in bad score computation and possibly not optimal masking. Fixed in 9d732e7
Misc
- Fixed all cargo clippy lints and most of cargo clippy pedantic
- Reduced WASM size by rebuilding std
v0.5 - No dependency & WASM module
Dependencies
- No dependency.
wasm-bindgen
was removed and configured only fortarget_arch = "wasm32"
. This removes some overhead to the crate ! 🎉
WASM module
The WASM module size has been divided by 5, from 250kB to approximately 60kB. (45kb compressed). At cost of some performance that I could manage to minimize.
The Rust implementation for SVG converter could not be brought to WASM (format!
macro adds too much overhead, brings the module size to 120kB approximately).
Instead, the implementation is made in JS : adding qr_svg()
function to the npm package fast_qr
.