Skip to content

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

License

Notifications You must be signed in to change notification settings

timvisee/qr2term-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.