lib60870_sys/
lib.rs

1//! Raw FFI bindings to lib60870-C.
2//!
3//! This module contains the auto-generated bindgen bindings.
4//! For a safer API, use the types in the parent module.
5
6#![allow(non_upper_case_globals)]
7#![allow(non_camel_case_types)]
8#![allow(non_snake_case)]
9#![allow(dead_code)]
10#![allow(clippy::all)]
11#![allow(unpredictable_function_pointer_comparisons)]
12
13// On docs.rs, use pre-generated bindings (no network access to download C source)
14#[cfg(docsrs)]
15include!("bindings_pregenerated.rs");
16
17// For normal builds, use freshly generated bindings from build.rs
18#[cfg(not(docsrs))]
19include!(concat!(env!("OUT_DIR"), "/bindings.rs"));