| Crates.io | loot-condition-interpreter |
| lib.rs | loot-condition-interpreter |
| version | 5.3.2 |
| created_at | 2025-03-26 18:49:51.443505+00 |
| updated_at | 2025-04-28 19:44:51.748986+00 |
| description | Parse and evaluate LOOT metadata condition strings. |
| homepage | |
| repository | https://github.com/Ortham/libloadorder.git |
| max_upload_size | |
| id | 1606935 |
| size | 282,056 |
A library for parsing and evaluating LOOT's metadata condition strings. It provides:
Make sure you have Rust installed.
To build the Rust and C FFI libraries, run:
cargo build --release --package loot-condition-interpreter-ffi
Use cbindgen to generate a C++ header file:
cbindgen ffi/ -o ffi/include/loot_condition_interpreter.h
The tests and benchmarks need the testing-plugins and the LOOT API v0.13.8 Windows archives to be extracted and present in the repo root. See the GitHub Actions CI workflow for examples on what should be extracted where.
To run the Rust tests:
cargo test --all
To run the benchmarks:
cargo bench
There are also C++ tests for the FFI library, they require a C++ toolchain and CMake to be installed. To run the C++ tests:
mkdir ffi/build
cd ffi/build
cmake ..
cmake --build .
ctest