Skip to content

Releases: erwanvivien/fast_qr

v0.7 - Reduced wasm size & added rust features

21 Dec 00:37
Compare
Choose a tag to compare

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

28 Aug 16:18
Compare
Choose a tag to compare

Dependencies

  • No dependency. wasm-bindgen was removed and configured only for target_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.