qrcode 0.14.1

QR code encoder in Rust
Documentation
1
2
3
4
5
6
7
8
use std::env;

pub fn main() {
    let arg = env::args().nth(1).unwrap();
    let code = qrcode::QrCode::new(arg.as_bytes()).unwrap();

    print!("{}", code.render().dark_color("\x1b[7m  \x1b[0m").light_color("\x1b[49m  \x1b[0m").build());
}