jabcode 1.1.0

Bindings for the JAB code reference implementation
Documentation
1
2
3
4
5
6
7
8
9
10
use std::fs::File;
use std::path::Path;

fn main() {
    let data = "Hello world";
    let image = jabcode::write_jabcode(data.as_bytes(), &jabcode::WriteOptions::default()).unwrap();

    let fout = &mut File::create(&Path::new("out.png")).unwrap();
    image.write_to(fout, image::ImageFormat::Png).unwrap();
}