Cactus Rust Bindings¶
Raw FFI bindings to the Cactus C API. Auto-generated via bindgen.
Installation¶
Add to your Cargo.toml:
Build requirements:
- CMake
- C++20 compiler
- On macOS: Xcode command line tools
- On Linux: build-essential, libcurl4-openssl-dev, libclang-dev
Usage¶
All functions mirror the C API documented in docs/cactus_engine.md.
For usage examples, see:
- Test files: rust/cactus-sys/tests/
- C API docs: docs/cactus_engine.md
- Other SDKs: python/README.md, apple/README.md
Testing¶
export CACTUS_MODEL_PATH=/path/to/model
export CACTUS_STT_MODEL_PATH=/path/to/whisper-model
cargo test --manifest-path rust/Cargo.toml -- --nocapture
See Also¶
- Cactus Engine API — Full C API reference that the Rust bindings wrap
- Python SDK — Python bindings with higher-level wrappers
- Swift SDK — Swift bindings for Apple platforms
- Kotlin/Android SDK — Kotlin bindings for Android