-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Put versions in all WASI WIT files #7272
Put versions in all WASI WIT files #7272
Conversation
This commit starts exercising the versioning feature of WIT by ensuring that all WASI descriptions have a version associated with them. The version chosen is 0.2.0 which reflects the upcoming "preview 2" release where in theory 0.1.0 was claimed by preview1. This is intended to stay as 0.2.0 for now and we'll determine how best to update these numbers in the future once preview2 is released. Closes bytecodealliance#7171
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Until we have a vote on 0.2.0 I don't want to risk any binaries being out in the world with that version in them - can we please use 0.2.0-rc-2023-10-17
per https://docs.google.com/presentation/d/1t8rTwkJA28IvFvyqy3K49jy8Sm0xUsk-vZssFAruD8o/edit#slide=id.g22e9d051ccb_0_15
As a convenience for now this enables omitting the version of an interface from a `with` key. This has a risk of not working well if two packages are present and one has a version and one doesn't, but that's left as a PR to fix in the future as the benefit of avoiding repetition seems good for now.
Sounds reasonable to me yeah, although I'm not a fan of typing unwieldy version strings so that's motivated me to write up bytecodealliance/wasm-tools#1255, bytecodealliance/wit-bindgen#703, and some further improvements for wasmtime's own bindgen. That should enable avoid forcing the need for versions in more places throughout the tooling. It'll still be required in the WIT syntax itself but I think that should be fixable with Peter's |
On second though I'm gonna decouple these. There's some wasmtime improvements here to write versions less but the rest in the Rust sources will go away once I update wit-bindgen and wasm-tools which I'll do separately. Otherwise though the versions should be updated to |
This'll have some knock-on effects when applied to bytecodealliance#7272 but that's left for a future PR. This one's just about getting the deps in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent, really happy to see this moving forward!
This'll have some knock-on effects when applied to #7272 but that's left for a future PR. This one's just about getting the deps in.
* Put versions in all WASI WIT files This commit starts exercising the versioning feature of WIT by ensuring that all WASI descriptions have a version associated with them. The version chosen is 0.2.0 which reflects the upcoming "preview 2" release where in theory 0.1.0 was claimed by preview1. This is intended to stay as 0.2.0 for now and we'll determine how best to update these numbers in the future once preview2 is released. Closes bytecodealliance#7171 * Allow omitting versions in `with` keys As a convenience for now this enables omitting the version of an interface from a `with` key. This has a risk of not working well if two packages are present and one has a version and one doesn't, but that's left as a PR to fix in the future as the benefit of avoiding repetition seems good for now. * Allow omitting versions in trappable_error_types * Use 0.2.0-rc-2023-10-18 as a version number * More test fixes * Fix another test
* Put versions in all WASI WIT files This commit starts exercising the versioning feature of WIT by ensuring that all WASI descriptions have a version associated with them. The version chosen is 0.2.0 which reflects the upcoming "preview 2" release where in theory 0.1.0 was claimed by preview1. This is intended to stay as 0.2.0 for now and we'll determine how best to update these numbers in the future once preview2 is released. Closes #7171 * Allow omitting versions in `with` keys As a convenience for now this enables omitting the version of an interface from a `with` key. This has a risk of not working well if two packages are present and one has a version and one doesn't, but that's left as a PR to fix in the future as the benefit of avoiding repetition seems good for now. * Allow omitting versions in trappable_error_types * Use 0.2.0-rc-2023-10-18 as a version number * More test fixes * Fix another test
This commit starts exercising the versioning feature of WIT by ensuring that all WASI descriptions have a version associated with them. The version chosen is 0.2.0 which reflects the upcoming "preview 2" release where in theory 0.1.0 was claimed by preview1. This is intended to stay as 0.2.0 for now and we'll determine how best to update these numbers in the future once preview2 is released.
Closes #7171