timvisee / qr2term-rs

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

Home Page:https://gitlab.com/timvisee/qr2term-rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

https://gitlab.com/timvisee/qr2term-rs

License:Mozilla Public License 2.0


Languages

Language:Rust 100.0%