Feature flags
Cargo features decide which parts of troupekit get compiled: hosted models over HTTP, the SQLite store, document search, local models. You normally depend on troupekit and set features there, and it forwards them to the engine crates. The defaults give you agents, tools, hosted models and the SQLite store.
troupekit
| Feature | Turns on | Default |
|---|---|---|
kit | troupekit-kit: macros, Agent, Graph | yes |
sqlite | troupekit-store-sqlite | yes |
reqwest | the reqwest HTTP transport in the agent, graph, host and kit crates | yes |
knowledge | sqlite, kit, troupekit-context and the kit's knowledge | no |
sqlcipher | sqlite with SQLCipher and vendored OpenSSL | no |
sqlcipher-system | sqlite with SQLCipher and the system OpenSSL | no |
local | kit, the kit's local and troupekit-local | no |
llama | local and llama.cpp | no |
Engine crates
| Crate | Features | Default |
|---|---|---|
troupekit-kit | sqlite, knowledge, local, llama, reqwest | sqlite, reqwest |
troupekit-agent | reqwest | reqwest |
troupekit-graph | reqwest | reqwest |
troupekit-host | reqwest | reqwest |
troupekit-tools | reqwest | reqwest |
troupekit-providers | reqwest, embeddings | reqwest |
troupekit-store-sqlite | sqlcipher, sqlcipher-system | none |
troupekit-local | llama, llama-vulkan, embed | none |
troupekit-context | onnx, the fastembed ONNX embedder | none |
troupekit-core, troupekit-index, troupekit-trace, troupekit-macros, troupekit-cli | none | none |
Binding crates
| Crate | Features | Default |
|---|---|---|
troupekit-ffi-core | sqlite, reqwest, knowledge | all three |
troupekit-ffi | sqlite, reqwest, knowledge, and bindgen for the uniffi-bindgen binary | sqlite, reqwest, knowledge |
troupekit-py | sqlite, reqwest, knowledge | all three |
Build notes
The default build needs a C compiler, for the bundled SQLite and for aws-lc-sys in the TLS stack. llama adds a C++ compiler and CMake; Install has the details. llama-vulkan builds llama.cpp with its Vulkan backend.
sqlite uses rusqlite with the bundled SQLite, which means you do not need SQLite installed on the system. troupekit with no default features and sqlite alone is the phone build that CI checks: it has no TLS stack.