This is a copy of the Github readme.
Find the original on https://github.com/bestia-dev/qrcode53bytes.

qrcode53bytes

QR code for 53 bytes
version: 1.0 date: 2021-01-13 author: bestia.dev repository: GitHub

crates.io Documentation crev reviews RustActions latest doc License Hits

Lines in Rust code Lines in Doc comments Lines in Comments Lines in examples Lines in tests

Hashtags: #rustlang #tutorial My projects on Github are more like a tutorial than a finished product: bestia-dev tutorials.

I need to generate a simple QR code for url that has max 53 bytes. I want to do this in wasm.
QR codes are pretty complicated. So specifying only one single use-case makes the code smaller. But it looses universality.
Smaller code is good for wasm.
The url I want to encode is like this:
https://bestia.dev/mem6/#p04.1234
There is a hash symbol here so I cannot use the alphanumeric mode.
I must use the byte mode.
There are 33 characters. It means there is some free space for future uses.
The smallest QR code for that is:

The code is written by treeman. I just removed all the variants I don't need.

I use this code my wasm project https://github.com/bestia-dev/mem6_game.

make

List all the prepared commands and tasks with $ cargo make.
https://github.com/sagiegurari/cargo-make

References

https://github.com/treeman/rqr
https://www.thonky.com/qr-code-tutorial

cargo crev reviews and advisory

It is recommended to always use cargo-crev
to verify the trustworthiness of each of your dependencies.
Please, spread this info.
On the web use this url to read crate reviews. Example:
https://web.crev.dev/rust-reviews/crate/num-traits/

changelog

1.1.0 bitvec dependency was yanked. updated to 1.17.4, but later versions have breaking changes

Open-source and free as a beer

My open-source projects are free as a beer (MIT license).
I just love programming.
But I need also to drink. If you find my projects and tutorials helpful, please buy me a beer by donating to my PayPal.
You know the price of a beer in your local bar ;-)
So I can drink a free beer for your health :-)
Na zdravje! Alla salute! Prost! Nazdravlje! 🍻

//bestia.dev
//github.com/bestia-dev
//bestiadev.substack.com
//youtube.com/@bestia-dev-tutorials