Skip to content

deps: update Cargo dependencies - #145

Closed
12458 wants to merge 1 commit into
facebookexperimental:mainfrom
12458:dependency-updates
Closed

12458 wants to merge 1 commit into
facebookexperimental:mainfrom
12458:dependency-updates

Conversation

@12458

@12458 12458 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor
  • Refresh dependencies and update code for the new APIs.
  • Keep Arrow 58.4.2 and Lance 14.0.2 aligned with LanceDB 0.41.0.

Dependency changelog

28 of 51 resolved direct dependencies changed relative to #143. Upstream highlights relevant to Semcode:

  • LanceDB 0.27.2 → 0.41.0 fixes local query limits and preserves tagged versions during optimization. Semcode moves the lore schema migration to the new add_columns builder and propagates errors from nprobes. LanceDB release notes
  • Lance 4.0.0 → 14.0.2 and Arrow 57.3.1 → 58.4.2. Lance 14 changes B-tree indexes to use row addresses and fixes dropped scan candidates from inexact scalar index results. Arrow 58 reduces allocations for some array operations and adds ListView support to more kernels. Lance 14 notes · Lance 14.0.2 notes · Arrow 58 notes
  • Gitoxide (gix 0.83.0 → 0.91.0, gix-pack 0.70.0 → 0.78.0) includes permission fixes for shared repositories and packs. Semcode adapts the tree-diff callbacks and handles the optional merge base returned by the new API. Gitoxide release notes · Pack changelog
  • Tree-sitter 0.26.11 → 0.27.2 fixes query matching around alternations and anchors, along with parser error handling. Semcode uses the new QueryMatch::captures() accessor. 0.27.0 notes · 0.27.2 notes
  • Model2Vec 0.1.4 → 0.5.0 adds faster tokenization and pooling, int8 embedding storage, and support for the maximum length set in the model config. Semcode sets its existing 512-token limit for single-input encoding explicitly. 0.4.0 notes · 0.5.0 notes
  • Similar 2.7.0 → 3.2.1 speeds up line and word diffs and reduces allocations, according to its upstream changelog. Similar changelog
  • Tokio 1.53.1 → 1.54.1 makes buffered copies cooperate with the scheduler and fixes a timer regression in 1.54.0. Rustyline 17.0.2 → 19.0.0 includes a fix for paging through completions. Tokio 1.54.0 notes · Tokio 1.54.1 notes · Rustyline 19 notes
All 28 direct version changes
Crate Before After
arrow 57.3.1 58.4.2
arrow-array 57.3.1 58.4.2
arrow-schema 57.3.1 58.4.2
base64 0.22.1 0.23.1
blake3 1.8.5 1.8.7
chrono-english 0.1.8 0.2.1
clap 4.6.4 4.6.9
crossbeam-channel 0.5.16 0.5.17
dirs 6.0.0 7.0.0
flate2 1.1.9 1.1.11
futures 0.3.33 0.3.34
gix 0.83.0 0.91.0
gix-pack 0.70.0 0.78.0
lance 4.0.0 14.0.2
lancedb 0.27.2 0.41.0
model2vec-rs 0.1.4 0.5.0
owo-colors 4.3.0 4.4.0
regex 1.13.1 1.13.2
reqwest 0.13.4 0.13.5
rustyline 17.0.2 19.0.0
serde_json 1.0.151 1.0.154
sha1 0.10.7 0.11.0
shlex 1.3.0 2.0.1
similar 2.7.0 3.2.1
tokio 1.53.1 1.54.1
tokio-tungstenite 0.29.0 0.30.0
tree-sitter 0.26.11 0.27.2
walkdir 2.5.0 2.5.1

Release benchmark

I compared the two release builds before applying the #143 cleanup to the upgrade. Both indexed 65,618 C, header, and Rust files from Linux 7.4-rc4 (b6a9fa34ce4).

Measurement Before After Change
Fresh index, including optimization 187.7 s 168.1 s -10.4%
Peak index memory 3.83 GiB 4.32 GiB +12.8%
Index size 1.032 GiB 1.058 GiB +2.6%
func schedule, fresh process 284.9 ms 207.8 ms -27.1%
func schedule, warm 19.7 ms 17.0 ms -13.8%
callers submit_bio, warm 109.6 ms 103.2 ms -5.9%
grep --limit 0 folio_mark_dirty, warm 475.0 ms 376.6 ms -20.7%

The table reports medians from two fresh indexes per build with the order reversed, 18 fresh-process queries per build, and 22 warm queries per command per build. The runs used eight logical CPUs.

The full schedule results matched after sorting, and the caller and grep results matched in both rounds. The upgraded index consistently contained 79 fewer function-table rows and 5 fewer type rows.

Testing

  • cargo fmt --all -- --check
  • cargo test --locked -j 2 (632 passed)

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 23, 2026
@12458
12458 force-pushed the dependency-updates branch from 533397e to bf93e2f Compare November 23, 2026 04:52
@12458
12458 marked this pull request as draft November 23, 2026 04:53
@12458
12458 force-pushed the dependency-updates branch from bf93e2f to ddfaedf Compare November 25, 2026 02:40
@12458
12458 marked this pull request as ready for review November 25, 2026 02:41
@rikvanriel

Copy link
Copy Markdown
Contributor

This PR seems to do a lot more than just update dependencies. Is that intentional?

Refresh the remaining dependencies and adapt to the updated library APIs. Keep Arrow and Lance aligned with LanceDB.
@12458

12458 commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

This PR seems to do a lot more than just update dependencies. Is that intentional?

Some dependencies API changed so they need to be refactored, but I agree that this PR could be split out into:

  • dependency bump without API changes
  • 1 PR per dependency that required API changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants