Skip to content

Conversation

@fibonacci1729
Copy link
Collaborator

@fibonacci1729 fibonacci1729 commented Aug 15, 2025

Previously in targets validation the lookup of imports/exports required an exact match. This PR switches to using a NameMap that enables semver-compatible matching lookups.

NOTE: This PR borrows the implementation of NameMap from wasmtime.

As a follow up i'd like to re-use this NameMap to consolidate semver-compatible imports/exports during encoding so that only the maximal semver-compatible range is used.

@fibonacci1729
Copy link
Collaborator Author

fibonacci1729 commented Aug 15, 2025

Switching to draft until I finish up the test.

@alexcrichton
Copy link
Member

Seems like a reasonable starting point to me yeah 👍

…validation

Signed-off-by: Brian Hardock <brian.hardock@fermyon.com>
@fibonacci1729 fibonacci1729 merged commit 3f0b94b into bytecodealliance:main Aug 19, 2025
7 checks passed
@fibonacci1729 fibonacci1729 deleted the targets-semver branch August 19, 2025 16:34
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.

3 participants