Skip to content

chore(deps): batch wasmtime 47 + lsp-server 0.10 (build-verified) - #1838

Merged
robcohen merged 2 commits into
mainfrom
chore/batch-cargo-deps
Jul 21, 2026
Merged

robcohen merged 2 commits into
mainfrom
chore/batch-cargo-deps

Conversation

@robcohen

Copy link
Copy Markdown
Member

What

Consolidates the three open Cargo Dependabot chore PRs into one build-verified batch (held out of the CI-actions batch #1837 on purpose — these are dependency migrations, not mechanical bumps):

Supersedes Bump
#1829 wasmtime 46 → 47 (major)
#1828 wasmtime-wasi 46 → 47 (major)
#1827 lsp-server 0.9 → 0.10

The one API migration

lsp-server 0.10 reverted the 0.9 ResponseKind enum back to a flat response_result: Result<Value, ResponseError> (rust-analyzer/[email protected]). Migrated the LSP test harness: the match arms use Ok(..)/Err(..), and response_ok/response_err become .ok()/.err().

wasmtime 46 → 47 needed no code changes — the plugin, importer, ffi-component, and ffi-component-tests crates all build and test clean against 47.

Housekeeping the bumps require

  • Cargo.lock regenerated (cranelift 0.134, cap-std 4, io-lifetimes 3, …).
  • cargo-vet exemptions regenerated for the new wasmtime 47 crate tree (cargo vet succeeds).
  • deny.toml skips the second io-lifetimes version the wasmtime-47 / cap-std-4 stack drags in (multiple-versions = deny stays enforced).

Verified locally

cargo build + cargo test on rustledger-plugin / -importer / -lsp (264 tests) / -ffi-component / -ffi-component-tests — all pass. cargo deny check → advisories / bans / licenses / sources ok. cargo vet → succeeds. cargo fmt --check clean.

After merge

The three superseded Dependabot PRs (#1829, #1828, #1827) can be closed.

🤖 Generated with Claude Code

Consolidates the three open Cargo Dependabot PRs into one build-verified
batch (supersedes #1829 wasmtime, #1828 wasmtime-wasi, #1827 lsp-server).

- wasmtime + wasmtime-wasi 46 -> 47 (workspace + the ffi-component-tests
  hardcoded pins). No FFI/plugin API changes were needed; the plugin,
  importer, ffi-component and ffi-component-tests crates all build and test
  clean against 47.
- lsp-server 0.9 -> 0.10, which reverted the 0.9 `ResponseKind` enum back to
  a flat `response_result: Result<Value, ResponseError>`. Migrated the LSP
  test harness accordingly (response_ok/response_err become .ok()/.err()).
- Regenerated Cargo.lock (cranelift 0.134, cap-std 4, etc.) and the cargo-vet
  exemptions for the new wasmtime 47 crate tree.
- deny.toml: skip the second io-lifetimes version the wasmtime 47 / cap-std 4
  stack drags in (bans stay at multiple-versions = deny).

Verified: cargo build + test on rustledger-plugin / -importer / -lsp /
-ffi-component / -ffi-component-tests (all pass), cargo deny check
(advisories/bans/licenses/sources ok), cargo vet (succeeds), fmt clean.
@robcohen
robcohen requested a review from a team as a code owner July 21, 2026 01:11
Copilot AI review requested due to automatic review settings July 21, 2026 01:11
@github-actions

github-actions Bot commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

Tool Time Memory
rustledger 33.5ms ± 1.2ms 24.1 MB
beancount 795.3ms ± 3.5ms 50.5 MB
Comparison 23.7x faster 2.1x less

vs main branch (2026-07-20)

Metric main this PR Change
Time 31.6ms 33.5ms +6.0% 🟡
10K transactions · 5 runs, 2 warmup · hyperfine
What do these numbers mean?
  • Time: Wall-clock time to parse and validate the ledger (± std dev)
  • Memory: Peak resident set size (RSS)
  • vs main: Compared to latest nightly benchmark on main branch

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Batches the Dependabot Cargo dependency updates for wasmtime/wasmtime-wasi (46→47) and lsp-server (0.9→0.10), including the necessary LSP test-harness API migration and regenerated lockfile / supply-chain metadata to keep cargo deny/cargo vet passing.

Changes:

  • Bump workspace dependencies to wasmtime/wasmtime-wasi 47 and lsp-server 0.10.
  • Migrate the LSP test harness to lsp-server 0.10’s Response { response_result: Result<...> } shape.
  • Regenerate Cargo.lock and update supply-chain metadata (cargo-vet imports/config + cargo-deny multiple-version skip).

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
supply-chain/imports.lock Updated cargo-vet import data for the new dependency graph (wasmtime/cap-std/io-lifetimes/etc.).
supply-chain/config.toml Updated cargo-vet exemptions to match the new dependency set.
deny.toml Adds io-lifetimes to the multiple-version skip list due to wasmtime 47’s transitive skew.
crates/rustledger-lsp/tests/lsp_protocol/harness.rs Migrates test harness response handling to lsp-server 0.10 API.
crates/rustledger-ffi-component-tests/Cargo.toml Bumps wasmtime dev-dependencies used by component parity tests.
Cargo.toml Bumps workspace dependency versions for wasmtime/wasmtime-wasi and lsp-server.
Cargo.lock Regenerated lockfile reflecting the updated dependency resolution.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread supply-chain/config.toml Resolved
@github-actions

Copy link
Copy Markdown
Contributor

✅ Compatibility Test Results

Metric Result
Check Compatibility 100%
BQL Compatibility 100%
Full AST Match 100%
Total Files 812
What's tested
  • Check: Exit codes and error counts match bean-check
  • BQL: Query results match bean-query
  • Files: ~800 test files downloaded from 10+ beancount repositories

Full results available in workflow artifacts

@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copilot review: rustledger-ffi-component-tests pinned wasmtime/wasmtime-wasi
directly (46, then 47 here) instead of the workspace version, which is exactly
the drift that made this bump need a manual edit. Switch to workspace = true
(adding the component-model feature on top). Supply-chain exemptions left as
cargo-vet regenerates them.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_013gJH7uBBF9Xw9et9QFRcsU
@robcohen

Copy link
Copy Markdown
Member Author

Both addressed in c73ffae2:

  • ffi-component-tests wasmtime pin — good call, that direct pin is exactly the drift that made this bump need a manual edit. Switched to wasmtime = { workspace = true, features = ["component-model"] } and wasmtime-wasi.workspace = true, so it tracks the root version. Builds clean.
  • cpp_demangle 0.3.5 exemption — this is actually load-bearing: cargo vet regenerate exemptions restores it (removing it makes cargo vet fail), so 0.3.5 is in the resolution graph for some target/feature, not stale. Left as cargo-vet generates it.

@robcohen
robcohen merged commit ae39ed7 into main Jul 21, 2026
46 checks passed
@robcohen
robcohen deleted the chore/batch-cargo-deps branch July 21, 2026 02:03
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.

2 participants