Skip to content

feat(build): dual-engine default — official binaries ship usearch + vecq - #1171

Merged
ajianaz merged 2 commits into
developfrom
feat/dual-engine-default
Aug 31, 2026
Merged

ajianaz merged 2 commits into
developfrom
feat/dual-engine-default

Conversation

@ajianaz

@ajianaz ajianaz commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

What

  • Flip default features to [onnx, usearch, vecq] across uteke-core and the three forwarding crates (cli/server/mcp) — official binaries and the Docker image now ship both engines, so UTEKE_VECTOR_BACKEND / [vector] backend runtime selection (feat(core): runtime-selectable vector engine (usearch + vecq in one build) #1169) works out of the box.
  • Slim builds unchanged: --no-default-features --features vecq (mobile, pure Rust, no C++) and --features usearch (classic single-engine).
  • docker-compose.yml: expose UTEKE_VECTOR_BACKEND (default usearch).
  • docs/docker.md: engine-choice section; volume layout documents .usearch + .vecq coexisting; switching rebuilds from SQLite, data untouched.

Why

Testing

  • cargo test -p uteke-core --lib (new dual-engine default): 537 passed, 0 failed
  • cargo test -p uteke-cli config::: 45 passed, 0 failed
  • Feature tables verified via TOML parse for all 3 crates
  • Release-binary end-to-end smoke test: default run writes uteke_index.usearch; UTEKE_VECTOR_BACKEND=vecq rebuilds and hybrid recall finds the probe (score 1.13); switching back reuses the old .usearch file; UTEKE_VECTOR_BACKEND=bogus falls back cleanly (exit 0)
  • CI will re-verify slim (vecq-check) and default build matrix

Release 0.17.0 itself stays on hold pending maintainer approval (#1165).

…ecq (#1168)

Flip the default feature set of uteke-core and all forwarding crates
(cli/server/mcp) to compile BOTH vector engines, making runtime
selection (UTEKE_VECTOR_BACKEND / [vector] backend, #1169) available
out of the box in official binaries and the Docker image.

- default = [onnx, usearch, vecq] across the workspace.
- Slim builds unchanged: --no-default-features --features vecq
  (mobile, pure Rust) or --features usearch (classic single-engine).
- docker-compose: expose UTEKE_VECTOR_BACKEND (default usearch).
- docs/docker.md: engine-choice section + volume layout (.usearch +
  .vecq coexist; switching rebuilds from SQLite, data untouched).

Release binary size: 11.86 MB (was ~10.9 MB usearch-only; +~1 MB for
the vecq engine).

Verified:
- cargo test -p uteke-core --lib (dual-engine default): 537 passed
- cli config tests: 45 passed
- Release-binary smoke test: default writes .usearch; switch to vecq
  rebuilds (hybrid recall finds the probe, score 1.13); switch back
  reuses the old .usearch; invalid env falls back cleanly (exit 0)
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

CI clippy (-D warnings, workspace all-targets) flagged the import as
unused — the test never names the type directly.
@ajianaz
ajianaz merged commit c0b92cb into develop Aug 31, 2026
15 checks passed
@ajianaz
ajianaz deleted the feat/dual-engine-default branch August 31, 2026 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant