Expand description

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 types representing 2D barcode.

QR code type.

Rendering utilities.

Enums

QrError encodes the error encountered when generating a QR code.

Functions

Generate String from the given data as QR code.

Print the given data as QR code in the terminal.