qrcode-rust/examples/encode_unicode.rs

9 lines
218 B
Rust
Raw Normal View History

2020-07-07 02:02:12 -05:00
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);
}