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 currently only implements
10//! parsing and conversion for **SAS `.sas7bdat` files**.
11//!
12//! Most users should depend on the higher-level [`readstat`](https://docs.rs/readstat)
13//! crate instead of using these bindings directly.
14
15// Auto-generated bindgen code — suppress lints from generated bindings
16#![allow(clippy::pedantic)]
17#![allow(clippy::missing_safety_doc)]
18#![allow(clippy::ptr_offset_with_cast)]
19#![allow(clippy::useless_transmute)]
20#![allow(dead_code)]
21#![allow(deref_nullptr)]
22#![allow(non_upper_case_globals)]
23#![allow(non_camel_case_types)]
24#![allow(non_snake_case)]
25
26include!(concat!(env!("OUT_DIR"), "/bindings.rs"));