readstat_sys/lib.rs
1//! Raw FFI bindings to the [ReadStat](https://github.com/WizardMac/ReadStat) C library.
2//!
3//! This crate provides auto-generated bindings via [`bindgen`](https://docs.rs/bindgen).
4//! It compiles the `ReadStat` C source files from a vendored git submodule and links
5//! against platform-specific iconv and zlib libraries.
6//!
7//! These bindings expose the **full** `ReadStat` API, including support for SAS (`.sas7bdat`,
8//! `.xpt`), SPSS (`.sav`, `.zsav`, `.por`), and Stata (`.dta`) file formats. However,
9//! the higher-level [`readstat`](https://docs.rs/readstat) crate only implements
10//! parsing and conversion for **SAS `.sas7bdat` files** (SPSS/Stata support there is a
11//! possible future addition but not planned at this time — these bindings are the
12//! building block if you need those formats).
13//!
14//! Most users should depend on the higher-level [`readstat`](https://docs.rs/readstat)
15//! crate instead of using these bindings directly.
16
17// Auto-generated bindgen code — suppress lints from generated bindings
18#![allow(clippy::pedantic)]
19#![allow(clippy::missing_safety_doc)]
20#![allow(clippy::ptr_offset_with_cast)]
21#![allow(clippy::useless_transmute)]
22#![allow(dead_code)]
23#![allow(deref_nullptr)]
24#![allow(non_upper_case_globals)]
25#![allow(non_camel_case_types)]
26#![allow(non_snake_case)]
27
28include!(concat!(env!("OUT_DIR"), "/bindings.rs"));