readstat_iconv_sys/lib.rs
1//! Raw FFI bindings to [libiconv](https://www.gnu.org/software/libiconv/) for Windows.
2//!
3//! This crate compiles vendored libiconv on Windows and is a no-op on other
4//! 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//! Rust bindings are pre-generated per target and checked in under
8//! `src/bindings/`, so building requires no `libclang`. Maintainers regenerate
9//! them with `cargo build -p readstat-iconv-sys --features buildtime_bindgen`.
10
11// Auto-generated bindgen code — suppress lints from generated bindings
12#![allow(clippy::pedantic)]
13#![allow(clippy::missing_safety_doc)]
14#![allow(clippy::ptr_offset_with_cast)]
15#![allow(clippy::useless_transmute)]
16#![allow(clippy::redundant_static_lifetimes)]
17#![allow(dead_code)]
18#![allow(deref_nullptr)]
19#![allow(improper_ctypes)]
20#![allow(non_upper_case_globals)]
21#![allow(non_camel_case_types)]
22#![allow(non_snake_case)]
23
24// Only needed for Windows
25#[cfg(windows)]
26include!(concat!(env!("OUT_DIR"), "/bindings.rs"));