Skip to content

Upgrade wit-bindgen dependencies to 0.51.0#98

Merged
swlynch99 merged 1 commit intomainfrom
claude/update-wasmtime-m0CWr
Mar 10, 2026
Merged

Upgrade wit-bindgen dependencies to 0.51.0#98
swlynch99 merged 1 commit intomainfrom
claude/update-wasmtime-m0CWr

Conversation

@swlynch99
Copy link
Copy Markdown
Contributor

Summary

This PR upgrades the wit-bindgen crate dependencies from version 0.44.0 to 0.51.0, along with wasmtime from 36.0 to 41.0. The upgrade includes necessary code changes to adapt to API changes in the newer wit-bindgen versions.

Key Changes

  • Updated wit-bindgen-core and wit-bindgen-rust dependencies from 0.44.0 to 0.51.0
  • Updated wasmtime dependency from 36.0 to 41.0
  • Added explicit imports for Files and WorldGenerator from wit-bindgen-core to support the updated API
  • Changed resolve.push_dir() return value handling: now returns a single package instead of packages vector
  • Updated resolve.select_world() call to pass a slice reference &[package] instead of the packages vector
  • Replaced implicit Default::default() with explicit Files::default() type annotation for clarity

Implementation Details

The main API change in wit-bindgen 0.51.0 appears to be in how the resolver handles package directories. The push_dir() method now returns a single package rather than a vector of packages, requiring the caller to wrap it in a slice when passing to select_world(). The explicit Files::default() call ensures type safety with the updated API.

https://claude.ai/code/session_0141LHtG2yXG9WCvYgxFfXyh

Update wasmtime to the latest major version (41.0) and the
corresponding wit-bindgen-core/wit-bindgen-rust to 0.51.0 for
compatibility. wit-bindgen-rt stays at 0.44.0 as it is the latest
published version of that crate.

Fix durable-bindgen to adapt to wit-bindgen API changes:
- Import WorldGenerator trait (now required explicitly)
- Import Files type explicitly (no longer inferred)
- Adapt to push_dir returning a single PackageId instead of Vec

https://claude.ai/code/session_0141LHtG2yXG9WCvYgxFfXyh
@swlynch99 swlynch99 merged commit 14ea03f into main Mar 10, 2026
7 checks passed
@swlynch99 swlynch99 deleted the claude/update-wasmtime-m0CWr branch March 10, 2026 20:46
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