Skip to main content

Crate qred

Crate qred 

Source
Expand description

§QRED

qred is a fast, light-footprint native QR code generator in Rust.

§Example

use qred::QrCode;
 
fn main() -> Result<(), Box<dyn std::error::Error>> {
    let qrcode = QrCode::new("[https://github.com/aether-flux/qred](https://github.com/aether-flux/qred)")?;
    qrcode.save_image("output.png")?;
    Ok(())
}

Structs§

QrCode
Represents a generated QR code matrix ready for export.
QrOptions
Configurable options for QR code rendering (scale, quiet zone border, and colors).

Functions§

parse_hex_color
Parses a hex color code (e.g. "#1E1E2E") into Rgb, and errs otherwise.