16 releases

0.3.3 Sep 25, 2024
0.3.1 Oct 8, 2022
0.3.0 Feb 10, 2022
0.2.2 Dec 29, 2020
0.1.1 Mar 22, 2019

#16 in Rendering

Download history 1521/week @ 2024-08-22 1369/week @ 2024-08-29 1011/week @ 2024-09-05 1050/week @ 2024-09-12 1012/week @ 2024-09-19 1045/week @ 2024-09-26 980/week @ 2024-10-03 1178/week @ 2024-10-10 1246/week @ 2024-10-17 1213/week @ 2024-10-24 1339/week @ 2024-10-31 1270/week @ 2024-11-07 1114/week @ 2024-11-14 1230/week @ 2024-11-21 1507/week @ 2024-11-28 1030/week @ 2024-12-05

5,124 downloads per month
Used in 22 crates (20 directly)

MPL-2.0 license

44KB
278 lines

Build status on GitLab CI Newest release on crates.io Documentation Number of downloads on crates.io Project license

Rust library: qr2term

A stupidly simple QR code renderer, that prints text as QR code to the terminal, and nothing else.

example.rs:

fn main() {
    qr2term::print_qr("https://rust-lang.org/");
}

qr2term example screenshot

This library is based on qair, which didn't provide the renderer as a library on it's own. Credits for the actual renderer go to it's developer.

To read a text from the command line and encode it in QR form, run:

$ echo HelloWorld | cargo run --example example-read

To create WiFi credentials in QR form, run:

$ echo HelloWorld | cargo run --example example-wifi

License

This project is licensed under the MPL 2.0 license. Check out the LICENSE file for more information.

Dependencies

~2–11MB
~131K SLoC