Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement latest component model spec. #826

Merged
merged 1 commit into from Nov 18, 2022

Conversation

peterhuene
Copy link
Member

This PR implements the latest changes to the component model spec:

  • Adds a URL field to imports and exports.
  • Adds validation of the URL field.
  • Adds validation of various "names" such that they are kebab-cased.

Consequently, import and export names in components are no longer allowed to be empty,
which required fixes in many component model tests.

This commit implements the latest changes to the component model spec:

* Adds a `URL` field to imports and exports.
* Adds validation of the `URL` field.
* Adds validation of various "names" such that they are kebab-cased.

Consequently, import and export names in components are no longer allowed to be
empty, which required fixes in many component model tests.
Copy link
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

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

All looks great to me, thanks!

crates/wit-component/src/validation.rs Show resolved Hide resolved
crates/wasmparser/Cargo.toml Show resolved Hide resolved
@peterhuene peterhuene merged commit 57aad84 into bytecodealliance:main Nov 18, 2022
@peterhuene peterhuene deleted the update-component-model branch November 18, 2022 19:18
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.

None yet

2 participants