File: encode_string.rs

package info (click to toggle)
rust-qrencode 0.14.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 424 kB
  • sloc: makefile: 2
file content (7 lines) | stat: -rw-r--r-- 202 bytes parent folder | download
1
2
3
4
5
6
7
use qrencode::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);
}