Skip to content

fix(build): vecq binaries now buildable via forwarded backend features - #1115

Merged
ajianaz merged 1 commit into
developfrom
fix/vecq-binary-packaging
Aug 26, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/vecq-binary-packaging

Conversation

@ajianaz

@ajianaz ajianaz commented Aug 26, 2026 •

Copy link
Copy Markdown
Collaborator

What

  • uteke-cli/uteke-server/uteke-mcp pulled uteke-core with default features, so requesting vecq always unified with default usearch → mutual-exclusion compile_error! guard fired. Feature unshippable as binary while CI stayed green.
  • Fix: each downstream crate declares usearch/vecq features forwarding to uteke-core (default = ["usearch"]); uteke-server also forwards through its uteke-mcp dependency.
  • CI vecq-check now builds all three binaries with vecq so packaging breaks fail the build.

Why

Issue #1109 — the pure-Rust vecq backend (#1098) could not be built into a binary at all (cargo build --no-default-features --features uteke-core/vecq → compile_error). Root cause: Cargo feature unification — downstream default deps silently re-enabled usearch alongside vecq.

Testing

cargo build -p uteke-cli -p uteke-server -p uteke-mcp --no-default-features --features vecq  → OK
cargo build --release (all 3, default usearch)                                               → OK (3m12s)
cargo test -p uteke-core --no-default-features --features "onnx,vecq" --lib vector         → 8 passed
cargo fmt --all --check / cargo clippy --workspace --all-targets                            → clean

Fixes #1109

uteke-cli, uteke-server, and uteke-mcp pulled uteke-core with default
features, so requesting vecq always unified with the default usearch
backend and hit the mutual-exclusion compile_error guard. The feature
was library-testable but unshippable as a binary, while CI stayed green
because the vecq-check job only ran 'cargo test --lib vector'.

Each downstream crate now declares 'usearch'/'vecq' features that
forward to uteke-core (default = usearch), and uteke-server forwards
its backend choice through its uteke-mcp dependency as well. The
resulting build matrix:

  cargo build -p uteke-cli            # usearch (default)
  cargo build -p uteke-cli --no-default-features --features vecq

CI vecq-check now also builds all three binaries with the vecq feature
so packaging breaks fail the build, not just library tests.

Fixes #1109
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 27a2b4f into develop Aug 26, 2026
17 of 18 checks passed
@ajianaz
ajianaz deleted the fix/vecq-binary-packaging branch August 26, 2026 11:40
ajianaz added a commit that referenced this pull request Sep 6, 2026