Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Platform support

Troupekit is meant to run wherever your program runs, so CI builds the whole workspace for six targets on every pull request. You need Rust 1.89 or newer for troupekit, troupekit-kit, troupekit-store-sqlite, troupekit-cli and the binding crates, and Rust 1.85 or newer for the other crates, all on edition 2021.

The targets, and what CI checks on each beyond the build:

TargetRunnerAlso checked
x86_64-unknown-linux-gnuubuntu-latesttests of the changed crates
aarch64-unknown-linux-gnuubuntu-24.04-arm
aarch64-linux-androidubuntu-latest, cross build with the NDKa build without the TLS stack; a SQLCipher build
x86_64-pc-windows-msvcwindows-latestthe SQLite store smoke tests
macOSmacos-latesttests of the changed crates
aarch64-apple-iosmacos-latest, cross buildworkspace without troupekit-cli; a build without the TLS stack; a SQLCipher build

A build "without the TLS stack" is cargo build -p troupekit --no-default-features --features sqlite. It leaves out reqwest, for an app that brings its own HTTP transport.

Feature-specific jobs

Two features get their own Linux jobs, because they pull in C code. The llama job fetches llama.cpp and an embedding GGUF and runs the pooled-embedding test of troupekit-local. The sqlcipher and sqlcipher-system jobs run the SQLite store tests with each feature on.

Binding jobs

The bindings have their own jobs. The Swift contract tests run on macOS. The Kotlin contract tests run on the JVM on Linux and macOS, and again on an Android emulator. A Python wheel is built and tested with pytest for macOS arm64, Linux x86_64 and aarch64, and Windows x86_64.

Note

CI builds for iOS and Android, and since 0.4 an app can call troupekit from Swift or Kotlin, and a script from Python. The bindings are built from source; no SPM, Maven or PyPI package is published yet.