qrcode-rust/examples/encode_string.rs
2019-12-22 17:34:09 +08:00

8 lines
200 B
Rust

use qrcode::QrCode;
fn main() {
let code = QrCode::new(b"Hello").unwrap();
let string = code.render::<char>().quiet_zone(false).module_dimensions(2, 1).build();
println!("{}", string);
}