qrcode-rust/examples/encode_string.rs

12 lines
248 B
Rust
Raw Permalink Normal View History

2017-05-22 17:25:32 -05:00
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);
}