[do not merge] Preview adding @since
and @unstable
gates to WASI 0.2
#604
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.
In order to help create confidence in the implementation of
@since
and@feature
in wasm-tools, this PR adds@since
gates to the entirety of the WASI 0.2 API surface area. As well as bringing in thewit:clocks
timezone surface area introduced in WebAssembly/wasi-clocks#61 under an@unstable
attribute.This PR is not intended to be merged, but to mainly to validate the implementation and to give an idea of what the resulting semantics of that will be in practice.
Validating the implementation
Using a local build of the
wasm-tools
branch, do:This will warn
wasm-tools
not knowing where to findwasi:io
, but it will not throw any errors about@since
or@feature
gates not parsing.Next steps
Speaking concretely about the implementation: I'll split this PR up into several
sub-PRs on the correct sub-repositories. Those can't be merged until the
@since
and@feature
gate functionality is merged - but hopefully with thisdraft PR we can get one step closer in building confidence that it will work out
as expected.