datamatrix 0.3.2

Data Matrix (ECC 200) decoding and encoding with an optimizing encoder
Documentation
1
2
3
4
5
6
7
8
9
10
use datamatrix::{DataMatrix, SymbolList};
use std::io::{self, Read};

fn main() {
    let mut buffer = vec![];
    io::stdin().read_to_end(&mut buffer).unwrap();

    let code = DataMatrix::encode(&buffer, SymbolList::default().enforce_square()).unwrap();
    print!("{}", code.bitmap().unicode());
}