readstat_iconv_sys/lib.rs
1//! Raw FFI bindings to [libiconv](https://www.gnu.org/software/libiconv/) for Windows.
2//!
3//! This crate compiles libiconv from a vendored git submodule on Windows and is a
4//! no-op on other platforms. It exists primarily to support [`readstat-sys`](https://docs.rs/readstat-sys),
5//! which needs iconv for character encoding conversion in the `ReadStat` C library.
6
7// Auto-generated bindgen code — suppress lints from generated bindings
8#![allow(clippy::pedantic)]
9#![allow(clippy::missing_safety_doc)]
10#![allow(clippy::ptr_offset_with_cast)]
11#![allow(clippy::useless_transmute)]
12#![allow(clippy::redundant_static_lifetimes)]
13#![allow(dead_code)]
14#![allow(deref_nullptr)]
15#![allow(improper_ctypes)]
16#![allow(non_upper_case_globals)]
17#![allow(non_camel_case_types)]
18#![allow(non_snake_case)]
19
20// Only needed for Windows
21#[cfg(windows)]
22include!(concat!(env!("OUT_DIR"), "/bindings.rs"));