Add unicode example

This commit is contained in:
Sven-Hendrik Haase 2020-07-07 09:02:12 +02:00
parent 59a30b9d12
commit 31a57014a8

View file

@ -0,0 +1,8 @@
use qrcode::render::unicode;
use qrcode::QrCode;
fn main() {
let code = QrCode::new(b"Hello").unwrap();
let string = code.render::<unicode::Dense1x2>().quiet_zone(false).build();
println!("{}", string);
}