#[allow(
    dead_code,
    non_camel_case_types,
    non_snake_case,
    non_upper_case_globals
)]
#[rustfmt::skip]
pub mod bindings {
    include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
}

pub use bindings::*;

#[cfg(test)]
mod test {
    use super::*;

    /// test that bindings.rs exists by asserting some very basic things
    #[test]
    fn test_bindings_exists() {
        let ctx = bindings::generic_io_t {
            hash_buf: [0; 256],
            hash_len: 0,
            salt_buf: [0; 256],
            salt_len: 0,
        };
        assert_eq!(ctx.hash_len, 0);
        assert_eq!(ctx.salt_len, 0);
    }
}
