Repository navigation
Build the deny adapter without WASI std - #3723
Merged
Merged
Conversation
Signed-off-by: Brian Hardock <brian.hardock@fermyon.com>
itowlson
approved these changes
Sep 24, 2026
itowlson
left a comment
Contributor
There was a problem hiding this comment.
Oof, good find. A couple of suggestions and requests, but nothing blocking.
Signed-off-by: Brian Hardock <brian.hardock@fermyon.com>
itowlson
approved these changes
Sep 24, 2026
Signed-off-by: Brian Hardock <brian.hardock@fermyon.com>
Contributor
Author
|
The last commit here contains a CI check to ensure the adapter is up-to-date. Neat that it caught an actual problem immediately (the original commited adapter in this PR contained changes from Karthiks PR when i helped debug). |
karthik2804
reviewed
Sep 24, 2026
itowlson
reviewed
Sep 24, 2026
Signed-off-by: Brian Hardock <brian.hardock@fermyon.com>
fibonacci1729
enabled auto-merge (squash)
September 24, 2026 19:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds the deny adapter without WASI std, and add a test that its imports don't overlap its exports
The deny adapter was built for
wasm32-wasip2, so Rust's std added its own WASI imports to it. What those imports are depends on the toolchain. With Rust 1.98 they includewasi:sockets/udp@0.2.9andwasi:sockets/tcp@0.2.9, while the adapter exportswasi:sockets/udp@0.2.6andudp-create-socket@0.2.6.Because 0.2.6 and 0.2.9 are semver-compatible, the linker resolves the exported
udp-create-socket'suseudp.{udp-socket}to the imported 0.2.9 resource instead of the adapter's own exported one. Applying the adapter to a component that imports sockets then produces an invalid component:wac's subtype check compares resources by name only, so the problem only shows up when the composed component is validated. The committed adapter works only because it was built with an older toolchain, so running make adapter on current stable produces a broken adapter.