qr_code 0.17.0

QR code encoder in Rust, support structured append (data in multiple qrcodes)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[cfg(feature = "bmp")]
fn main() {
    use qr_code::bmp_monochrome::Bmp;
    use qr_code::decode::BmpDecode;
    use std::fs::File;

    let bmp = Bmp::read(File::open("qr_not_normalized.bmp").unwrap()).unwrap();
    println!("{}", &bmp.normalize().decode());
}

#[cfg(not(feature = "bmp"))]
fn main() {
    println!("This example needs bmp feature");
}