Expand description
C FFI bindings for ifc-lite.
Exports functions for use via P/Invoke from C#:
ifc_lite_parse: parse an IFC file and return JSON bytesifc_lite_parse_ex: parse with configurable opening filterifc_lite_free: free a buffer previously returned by parse functions
Build: cargo build --profile server-release -p ifc-lite-ffi
Output: target/server-release/ifc_lite_ffi.dll
The server-release profile is mandatory, not a convenience: the workspace
default release profile sets panic = 'abort', which turns the
catch_unwind guards below into no-ops. Built that way, a parser panic
aborts the entire host CAD process instead of returning error code 3.
server-release inherits release but restores panic = "unwind".
Functions§
- ifc_
lite_ ⚠free - Free a buffer previously returned by
ifc_lite_parseorifc_lite_parse_ex. - ifc_
lite_ ⚠parse - Parse an IFC file and return JSON bytes.
- ifc_
lite_ ⚠parse_ ex - Parse an IFC file with a configurable opening filter and return JSON bytes.