qr2term

Crates.ioqr2term
lib.rsqr2term
version0.3.3
sourcesrc
created_at2019-03-14 21:02:06.672768
updated_at2024-09-25 18:14:50.655608
descriptionStupidly simple Rust crate to render a QR code in the terminal.
homepagehttps://github.com/timvisee/qr2term-rs
repositoryhttps://github.com/timvisee/qr2term-rs
max_upload_size
id120735
size74,197
Tim Visée (timvisee)

documentation

https://docs.rs/qr2term

README

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.

Commit count: 107

cargo fmt