Skip to content

v0.5 - No dependency & WASM module

Compare
Choose a tag to compare
@erwanvivien erwanvivien released this 28 Aug 16:18
· 121 commits to master since this release

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.