pdftract/crates/pdftract-libpdftract
jedarden 3f8d9dc687 feat(pdftract-5rl5o): add cbindgen header generation for pdftract.h
Add cbindgen infrastructure to auto-generate C/C++ header from Rust extern
"C" surface at build time.

- Add cbindgen.toml config (C language, include guard, pragma_once, cpp_compat)
- Add build.rs to generate include/pdftract.h during cargo build
- Generated header compiles cleanly with gcc (C) and g++ (C++)

The header is the contract between libpdftract and C/C++ consumers.
Future extern "C" functions will automatically appear in the header.

Refs: pdftract-5rl5o
2026-05-23 07:31:53 -04:00
..
include feat(pdftract-5rl5o): add cbindgen header generation for pdftract.h 2026-05-23 07:31:53 -04:00
src feat(pdftract-uyhq7): scaffold libpdftract cdylib+staticlib crate 2026-05-23 07:29:47 -04:00
build.rs feat(pdftract-5rl5o): add cbindgen header generation for pdftract.h 2026-05-23 07:31:53 -04:00
Cargo.toml feat(pdftract-uyhq7): scaffold libpdftract cdylib+staticlib crate 2026-05-23 07:29:47 -04:00
cbindgen.toml feat(pdftract-5rl5o): add cbindgen header generation for pdftract.h 2026-05-23 07:31:53 -04:00