C foreign function interface (FFI) for the Cavalier Contours library.
Note
Run all these commands from the root of the cavalier contours repository/workspace.
You can generate a C header file using cbindgen with the following command:
cbindgen --crate cavalier_contours_ffi --output cavalier_contours.hThe .so library file (.dylib on macOS, .dll on Windows) is built just by building the crate from cargo:
cargo build -p cavalier_contours_ffi --releaseThe resulting shared library file will be located in /target/release, the file name will be libcavalier_contours_ffi.so on Linux, cavalier_contours_ffi.dll on Windows, and something similar on macOS (ending in .dylib).
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.