Crates.io | qrcode53bytes |
lib.rs | qrcode53bytes |
version | 1.1.0 |
source | src |
created_at | 2020-02-17 09:23:23.672381 |
updated_at | 2021-01-12 14:35:31.829875 |
description | QR code for 53 bytes |
homepage | |
repository | https://github.com/LucianoBestia/qrcode53bytes |
max_upload_size | |
id | 209986 |
size | 57,690 |
Things are changing fast. 2020-02-17 LucianoBestia ver.1.0.0.
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/LucianoBestia/mem6_game.
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/
cargo run --example svg
https://github.com/treeman/rqr
https://www.thonky.com/qr-code-tutorial
1.1.0 bitvec dependency was yanked. updated to 1.17.4, but later versions have breaking changes