#qr #terminal #code

qr2term

Stupidly simple Rust crate to render a QR code in the terminal

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

#17 in Visualization

Download history 7898/week @ 2026-01-19 8328/week @ 2026-01-26 6263/week @ 2026-02-02 7995/week @ 2026-02-09 11255/week @ 2026-02-16 10672/week @ 2026-02-23 10723/week @ 2026-03-02 12169/week @ 2026-03-09 11567/week @ 2026-03-16 10795/week @ 2026-03-23 10937/week @ 2026-03-30 10288/week @ 2026-04-06 11084/week @ 2026-04-13 10403/week @ 2026-04-20 7732/week @ 2026-04-27 9317/week @ 2026-05-04

39,637 downloads per month
Used in 38 crates (35 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

~3–15MB
~172K SLoC