qrcode-rust/examples/encode_string.rs

9 lines
221 B
Rust
Raw 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();
2018-07-30 03:59:03 -05:00
let string = code.render::<char>().quiet_zone(false).module_dimensions(2, 1).build();
2017-05-22 17:25:32 -05:00
println!("{}", string);
}