| Crates.io | qr2term |
| lib.rs | qr2term |
| version | 0.3.3 |
| created_at | 2019-03-14 21:02:06.672768+00 |
| updated_at | 2024-09-25 18:14:50.655608+00 |
| description | Stupidly simple Rust crate to render a QR code in the terminal. |
| homepage | https://github.com/timvisee/qr2term-rs |
| repository | https://github.com/timvisee/qr2term-rs |
| max_upload_size | |
| id | 120735 |
| size | 74,197 |
A stupidly simple QR code renderer, that prints text as QR code to the terminal, and nothing else.
fn main() {
qr2term::print_qr("https://rust-lang.org/");
}

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
This project is licensed under the MPL 2.0 license. Check out the LICENSE file for more information.