Feature Flags
synwire-core
| Feature | Default | Description |
|---|---|---|
retry | Yes | Retry support via backoff + tokio |
http | Yes | HTTP client via reqwest |
tracing | No | OpenTelemetry tracing integration |
event-bus | No | Tokio-based event bus for custom events |
batch-api | No | Provider-level batch processing trait |
Example
[dependencies]
synwire-core = { version = "0.1", features = ["tracing"] }
To disable defaults:
synwire-core = { version = "0.1", default-features = false, features = ["http"] }
synwire (umbrella)
| Feature | Default | Description |
|---|---|---|
openai | No | Include synwire-llm-openai provider |
ollama | No | Include synwire-llm-ollama provider |
lsp | No | Include synwire-lsp for Language Server Protocol integration |
dap | No | Include synwire-dap for Debug Adapter Protocol integration |
synwire-index
| Feature | Default | Description |
|---|---|---|
hybrid-search | No | BM25 (tantivy) + vector hybrid search with configurable alpha weighting |
code-graph | No | Cross-file call/import/inherit dependency graph backed by SQLite |
community-detection | No | HIT-Leiden community clustering over the code graph |
Example
[dependencies]
synwire-index = { version = "0.1", features = ["hybrid-search", "code-graph"] }
community-detection requires code-graph — community clustering operates on the graph edges.
synwire-agent-skills
| Feature | Default | Description |
|---|---|---|
lua | No | Lua scripting runtime via mlua |
rhai | No | Rhai scripting runtime |
wasm | No | WebAssembly runtime via extism |
All runtimes are opt-in to keep binary size small. Enable only the runtimes your skills require:
synwire-agent-skills = { version = "0.1", features = ["lua"] }
Example
[dependencies]
synwire = { version = "0.1", features = ["openai", "ollama"] }
Provider crates
synwire-llm-openai and synwire-llm-ollama have no optional features. They always depend on synwire-core with the http feature enabled.
synwire-checkpoint-sqlite
No optional features. Always depends on rusqlite with the bundled feature (compiles SQLite from source).
synwire-derive
No optional features. Proc-macro crate depending on syn, quote, proc-macro2.
Interaction between features
retryrequirestokiofor async backoff delaystracingenablestracing,tracing-opentelemetry,opentelemetry, andopentelemetry_sdkevent-busrequirestokiofor broadcast channels- Disabling
httpremovesreqwest-- provider crates will not compile without it
Checking active features
cargo tree -e features -p synwire-core