flatline-umac 0.1.0

Rust bindings for UMAC (Universal Message Authentication Code)
use std::path::PathBuf;

fn main() {
    cc::Build::new()
        .include("umac")
        .file("umac/umac.c")
        .file("umac/umac128.c")
        .file("umac/rijndael.c")
        .compile("libumac");

    bindgen::builder()
        .derive_default(true)
        .generate_comments(true)
        .header("umac/umac.h")
        .clang_arg("-Iumac")
        .allowlist_file("umac/umac.h")
        .generate()
        .expect("Failed to generate binding")
        .write_to_file(PathBuf::from(std::env::var("OUT_DIR").unwrap()).join("umac.rs"))
        .expect("Failed to write binding");
}