Repository navigation
feat(build): dual-engine default — official binaries ship usearch + vecq - #1171
Merged
Merged
Conversation
…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)
🔍 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
[onnx, usearch, vecq]across uteke-core and the three forwarding crates (cli/server/mcp) — official binaries and the Docker image now ship both engines, soUTEKE_VECTOR_BACKEND/[vector] backendruntime selection (feat(core): runtime-selectable vector engine (usearch + vecq in one build) #1169) works out of the box.--no-default-features --features vecq(mobile, pure Rust, no C++) and--features usearch(classic single-engine).UTEKE_VECTOR_BACKEND(defaultusearch)..usearch+.vecqcoexisting; switching rebuilds from SQLite, data untouched.Why
vecqpreference. With this, release notes can honestly say: one binary, two engines, flip one env var.Testing
cargo test -p uteke-core --lib(new dual-engine default): 537 passed, 0 failedcargo test -p uteke-cli config::: 45 passed, 0 faileduteke_index.usearch;UTEKE_VECTOR_BACKEND=vecqrebuilds and hybrid recall finds the probe (score 1.13); switching back reuses the old.usearchfile;UTEKE_VECTOR_BACKEND=bogusfalls back cleanly (exit 0)