qrcode-rust/examples/encode_string.rs
2017-05-23 06:56:22 +08:00

12 lines
248 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);
}