Skip to main content

Crate readstat_iconv_sys

Crate readstat_iconv_sys 

Source
Expand description

Raw FFI bindings to win-iconv for Windows.

win-iconv is a public-domain iconv implementation backed by the Win32 conversion APIs. This crate compiles it from a vendored copy when targeting Windows and is a no-op on other platforms, so no LGPL code is statically linked. It exists primarily to support readstat-sys, which needs iconv for character encoding conversion in the ReadStat C library.

Rust bindings are pre-generated per target and checked in under src/bindings/, so building requires no libclang. Maintainers regenerate them with READSTAT_REGEN_BINDINGS=1 cargo build -p readstat-iconv-sys --features buildtime_bindgen.