mirror of
https://github.com/loot/loot-condition-interpreter.git
synced 2026-07-27 14:16:09 -07:00
Remove the ffi-headers feature
Rely on a separate cbindgen instance instead, which is less self-contained but more practical.
This commit is contained in:
@@ -27,16 +27,7 @@ To build the Rust and C FFI libraries, run:
|
||||
cargo build --release --package loot-condition-interpreter-ffi
|
||||
```
|
||||
|
||||
To generate a C++ header file as part of the build, instead run:
|
||||
|
||||
```
|
||||
cargo build --release --package loot-condition-interpreter-ffi --all-features
|
||||
```
|
||||
|
||||
This will create a file at `ffi/include/loot_condition_interpreter.h`.
|
||||
However, this involves building [cbindgen](https://github.com/eqrion/cbindgen)
|
||||
as a dependency, which is relatively slow. If you have cbindgen installed
|
||||
separately, it's faster to generate the headers using its CLI:
|
||||
Use [cbindgen](https://github.com/eqrion/cbindgen) to generate a C++ header file:
|
||||
|
||||
```
|
||||
cbindgen ffi/ -o ffi/include/loot_condition_interpreter.h
|
||||
|
||||
Reference in New Issue
Block a user