1#![allow(non_upper_case_globals)]
2#![allow(non_camel_case_types)]
3#![allow(non_snake_case)]
4#![allow(clippy::unreadable_literal)]
5#![allow(clippy::missing_safety_doc)]
6#![allow(clippy::upper_case_acronyms)]
7#![allow(clippy::uninlined_format_args)]
8#![no_std]
9
10use ::core::ptr;
11
12pub const SIZE_T_ERROR: &str =
14 "conversion between C type 'size_t' and Rust type 'usize' overflowed.";
15
16include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
17
18#[cfg(not(feature = "bindgen"))]
19include!(concat!("bindings/", bindings_env!("TARGET"), ".rs"));
20
21#[cfg(target_pointer_width = "64")]
22include!("inlines/ptr_64.rs");
23
24#[cfg(target_pointer_width = "32")]
25include!("inlines/ptr_32_nan_boxing.rs");
26
27include!("inlines/common.rs");