use image::Luma; use qrcode::QrCode; fn main() { // Encode some data into bits. let code = QrCode::new(b"01234567").unwrap(); // Render the bits into an image. let image = code.render::>().build(); // Save the image. image.save("/tmp/qrcode.png").unwrap(); }