qrcode-rust/examples/encode_string.rs
2018-07-30 16:59:49 +08:00

9 lines
221 B
Rust

extern crate qrcode;
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);
}