Skip to content

Remove unused idf_ffi crate - #12359

Merged
gdesmott merged 1 commit into
masterfrom
gdesmott-rm-idf-ffi
Nov 17, 2026
Merged

gdesmott merged 1 commit into
masterfrom
gdesmott-rm-idf-ffi

Conversation

@gdesmott

Copy link
Copy Markdown
Collaborator

Describe the changes in the pull request

  1. Current: idf_ffi exports CalculateIDF and CalculateIDF_BM25 to C, but nothing in C calls them since [MOD-14883] query_eval: evaluate QN_FUZZY in Rust #10860 moved their last caller (fuzzy node evaluation) to Rust. src/query.c still includes the header.
  2. Change: Remove the idf_ffi crate, its generated header, the stale include, and the force-link from rqe_wildcard's test binary.
  3. Outcome: Internal-only; no behavior change. The idf crate stays and is used from Rust directly.

Which additional issues this PR fixes

N/A

Main objects this PR modified

  1. idf_ffi crate — removed
  2. src/query.c — drops the unused idf_ffi.h include

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

Release Notes

  • This PR requires release notes
  • This PR does not require release notes

If a release note is required (bug fix / new feature / enhancement), describe the user impact of this PR in the title.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T16:04:57.151454Z fa7fd17 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

C stopped calling CalculateIDF and CalculateIDF_BM25 in 81885bc
(query_eval: evaluate QN_FUZZY in Rust, #10860), which ported the last
C caller to Rust. Rust code uses the idf crate directly.
@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Nov 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.54%. Comparing base (0c749b7) to head (fa7fd17).
⚠️ Report is 12 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12359      +/-   ##
==========================================
- Coverage   83.54%   83.54%   -0.01%     
==========================================
  Files         850      849       -1     
  Lines      102658   102661       +3     
  Branches    15555    15557       +2     
==========================================
- Hits        85766    85765       -1     
- Misses      10611    10613       +2     
- Partials     6281     6283       +2     
Flag Coverage Δ
flow 72.02% <ø> (-0.03%) ⬇️
unit 62.11% <ø> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gdesmott
gdesmott added this pull request to the merge queue Nov 17, 2026
Merged via the queue into master with commit 0467d13 Nov 17, 2026
69 checks passed
@gdesmott
gdesmott deleted the gdesmott-rm-idf-ffi branch November 17, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants