1#![allow(missing_docs)]
6#![allow(non_camel_case_types)]
7#![allow(non_snake_case)]
8#![allow(non_upper_case_globals)]
9
10include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
11
12pub const HB_SET_VALUE_INVALID: u32 = u32::MAX;
13pub const HB_LANGUAGE_INVALID: *const hb_language_impl_t = std::ptr::null();
14
15impl From<hb_ot_name_id_predefined_t> for hb_ot_name_id_t {
16 fn from(value: hb_ot_name_id_predefined_t) -> Self {
17 Self(value.0)
18 }
19}
20
21#[cfg(test)]
22mod tests {
23 use super::*;
24
25 #[test]
26 fn test_version() {
27 assert!(
28 unsafe { hb_version_atleast(7, 0, 0) } != 0,
29 "The minimum supported version of HarfBuzz is 7.0.0"
30 );
31 }
32}