qrcode-rust2 (qrcode2) is a QR code encoding library
written in Rust.
This crate provides a normal QR code, Micro QR code, and rMQR code encoder for binary data.
Important
This is a fork of the qrcode crate.
Run the following command in your project directory:
cargo add qrcode2Enables EPS rendering support. This is enabled by default.
Enables raster image rendering support powered by the image crate. This is
enabled by default.
Enables PIC rendering support. This is enabled by default.
Enables features that depend on the standard library. This is enabled by default.
Enables SVG rendering support. This is enabled by default.
This supports no_std mode. Disables the default feature to enable this.
See the documentation for more details.
Please see the examples directory for examples of using this library.
cargo run --example encode_svg -- -l h "QR code" > qr_code.svgGenerates this image:
cargo run --example encode_svg -- --variant micro "QR code" > micro_qr_code.svgGenerates this image:
cargo run --example encode_svg -- --variant rmqr "QR code" > rmqr_code.svgGenerates this image:
The minimum supported Rust version (MSRV) of this library is v1.88.0.
The upstream repository is available at https://github.com/sorairolake/qrcode-rust2.git.
Please see CHANGELOG.adoc.
Please see CONTRIBUTING.adoc.
The rMQR code encoder is based on the qrqrpar crate. It is licensed under
the BSD 3-Clause "New" or "Revised" License.
Copyright (C) 2016 kennytm and contributors (see AUTHORS.adoc)
This library is distributed under the terms of either the Apache License 2.0 or the MIT License.
This project is compliant with version 3.3 of the REUSE Specification. See copyright notices of individual files for more details on copyright and licensing information.