Crate qr2term

Source
Expand description

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

§Examples

example.rs:

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§

generate_qr_string
Generate String from the given data as QR code.
print_qr
Print the given data as QR code in the terminal.