1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// libiio-sys/src/lib.rs
//
//!
//!

#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]

// Temporary
#![allow(dead_code)]

// Bindgen uses u128 on some rare parameters
#![allow(improper_ctypes)]

// Bring in the bindgen bindings of "iio.h"
#[cfg(all(unix, target_pointer_width = "64"))]
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/bindings/bindings-0.21_64.rs"));

#[cfg(all(unix, target_pointer_width = "32"))]
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/bindings/bindings-0.21_32.rs"));