Skip to content

Update Wasmtime dependencies from version 33 to 36#266

Merged
Mossaka merged 6 commits into
mainfrom
copilot/fix-265
Sep 15, 2025
Merged

Update Wasmtime dependencies from version 33 to 36#266
Mossaka merged 6 commits into
mainfrom
copilot/fix-265

Conversation

Copilot AI commented Sep 14, 2025

Copy link
Copy Markdown
Contributor
  • Update Wasmtime dependencies from version 33 to 36
  • Fix API compatibility issues for new enum variants and trait changes
  • Restore security advisory ignore for fxhash in wasmtime 36.0.2
  • Fix code formatting issues with cargo +nightly fmt

Changes Made

Version Updates

Updated all Wasmtime workspace dependencies:

  • wasmtime = "36"
  • wasmtime-wasi = "36"
  • wasmtime-wasi-http = "36"
  • wasmtime-wasi-config = "36"

API Compatibility Fixes

The Wasmtime 36 upgrade introduced several API changes that required code updates:

  1. New enum variants: Added support for Future, Stream, and ErrorContext types in component2json pattern matching
  2. WASI trait refactoring: Updated WasiView trait implementation to return WasiCtxView struct instead of direct context access
  3. Merged traits: Removed obsolete IoView trait usage as it was merged into WasiView in v36
  4. Resource table access: Added required table() method to WasiHttpView implementations

Security Advisory Management

Maintained the fxhash security advisory (RUSTSEC-2025-0057) in the deny.toml ignore list, as wasmtime 36.0.2 still has this transitive dependency issue. This will be resolved when upgrading to wasmtime > 36.0.2.

Code Formatting

Fixed code formatting issues identified by cargo +nightly fmt:

  • Properly formatted long error message lines in component2json pattern matching
  • Fixed import order in WASI-related modules

Testing

  • All core library tests pass (component2json: 33/33, mcp-server: 16/16, policy: 40/40)
  • Main binaries build and execute successfully
  • Full workspace compilation completed without errors
  • Code passes clippy checks without warnings

The individual crates automatically inherit the new versions through { workspace = true } dependencies.

Fixes #265.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits September 14, 2025 16:30
Co-authored-by: cataggar <87583576+cataggar@users.noreply.github.com>
Co-authored-by: cataggar <87583576+cataggar@users.noreply.github.com>
Copilot AI changed the title [WIP] update wasmtime versions from 33 to 36 Update Wasmtime dependencies from version 33 to 36 Sep 14, 2025
Copilot AI requested a review from cataggar September 14, 2025 16:34
Comment thread CHANGELOG.md
Revert the removal of RUSTSEC-2025-0057 from deny.toml ignore list and
restore corresponding CHANGELOG.md entry. The current wasmtime version
36.0.2 still has this transitive dependency issue with fxhash. This
will be resolved when upgrading to wasmtime > 36.0.2.

Co-authored-by: cataggar <87583576+cataggar@users.noreply.github.com>
@cataggar

Copy link
Copy Markdown
Member

@copilot, please fix the lint problems. I think cargo +nightly fmt needs to be run.

Co-authored-by: cataggar <87583576+cataggar@users.noreply.github.com>

Copilot AI commented Sep 14, 2025

Copy link
Copy Markdown
Contributor Author

@copilot, please fix the lint problems. I think cargo +nightly fmt needs to be run.

Fixed the lint problems by running cargo +nightly fmt. The formatting issues were in the long error message lines and import ordering. All formatting is now correct and passes clippy checks. (20a36a6)

@cataggar cataggar marked this pull request as ready for review September 15, 2025 02:28
//! - Integrated with component environment variable system

use std::collections::HashMap;
#[cfg(unix)]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Separated out to

@Mossaka Mossaka merged commit a0ffee7 into main Sep 15, 2025
13 checks passed
@Mossaka Mossaka deleted the copilot/fix-265 branch September 15, 2025 21:36
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.

update wasmtime versions from 33 to 36

3 participants