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