[][src]Crate qr2term

A stupidly simple QR code renderer, that prints text as QR code to the terminal, and nothing else.

Examples

example.rs:

fn main() {
    qr2term::print_qr("https://rust-lang.org/").unwrap();
}

qr2term example screenshot

Based on

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.

Modules

matrix

Matrix types representing 2D barcode.

qr

QR code type.

render

Rendering utilities.

Enums

QrError

QrError encodes the error encountered when generating a QR code.

Functions

print_qr

Print the given data as QR code in the terminal.