fn main() { cc::Build::new().file("monocypher.c").compile("monocypher"); // Uncomment to update bindings: // bindgen::Builder::default() // .header("monocypher.h") // .use_core() // .size_t_is_usize(true) // .array_pointers_in_arguments(true) // .translate_enum_integer_types(true) // .ctypes_prefix("crate::ctypes") // .blocklist_type("__uint(.+)_t") // .allowlist_function("crypto_(lock|unlock)_aead") // .allowlist_function("crypto_blake2b_(general_init|update|final)") // .allowlist_function("crypto_argon2i") // .allowlist_function("crypto_key_exchange") // .allowlist_function("crypto_(sign_public_key|check|sign)") // .rustfmt_bindings(true) // .layout_tests(false) // .generate() // .expect("Unable to generate bindings") // .write_to_file("src/bindings.rs") // .expect("Couldn't write bindings!"); }