polyxml-c
polyxml-c provides the standard C-ABI shared and static library (libpolyxml) and C headers (polyxml.h) for PolyXML.
It exposes high-performance XML streaming and schema construction to C, C++, and any foreign function interface (FFI) runtime.
Features
- Pure C99 API: Clean, thread-safe C header (
polyxml.h). - Opaque Pointers: Safe memory management with explicit
polyxml_schema_free,polyxml_value_free, andpolyxml_buffer_free. - Zero Heavy Allocations: Exposes PolyXML's native Rust streaming engine to native codebases.
Building
This generates:
- Linux / macOS:
target/release/libpolyxml.soorlibpolyxml.dylib - Windows:
target/release/polyxml.dllandpolyxml.dll.lib
Headers are located in crates/polyxml-c/include/polyxml.h.
Example (C99)
int
License
Licensed under the MIT License.