-
Notifications
You must be signed in to change notification settings - Fork 251
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
refactor: Remove optional feature attribute from stable feature gates #1741
refactor: Remove optional feature attribute from stable feature gates #1741
Conversation
This commit removes the optional `feature` specification from feature gates (`@since`, in particular). This change should simplify the usage of feature gates (see WebAssembly/component-model#387) for more discussion. This is a breaking change for those who were depending on `wit-parser` as `feature` now no longer present. Signed-off-by: Victor Adossi <[email protected]>
This commit updates `wit-component` to remove reliance on the `feature` option when dealing with post-stabilization (`@since`) feature gates. Signed-off-by: Victor Adossi <[email protected]>
3914455
to
0bc0714
Compare
Could this perhaps just be removed from |
For whatever its worth, I think for brand new features like this one, its OK to break this corner case. In a few months I'd be more careful, but I think its pretty unlikely anyone will encounter this. |
I can definitely see it both ways, and with regards to:
One thing I thought of might be to just make sure it the code never does anything useful (i.e. always puts So putting out the options at least:
Could go either way here, but if @alexcrichton you're comfortable with (2) I can go with that, or if you want to go with what @pchickey suggested (which is 3), I can do that as well. |
API-wise it's ok to have breaking changes whenever, that's what the semver-major-bumps are for in this crates on regular releases. Interface-wise-breaking though is more worrisome (e.g. changing WIT syntax). That's because it's expected that WIT with 215.* is compatible with 216.* and vice-versa (where possible). Changing WIT syntax by removing That's basically a longer-winded way of saying, yes, I was adovcating for (2) and Pat for (3). That being said I don't disagree that this is new enough we can probably go with (3), so seems reasonable to just remove it outright (but that will require updating some tests it looks like) |
Yeah thanks for saying some more about it... I actually just looked at |
Signed-off-by: Victor Adossi <[email protected]>
fa646f6
to
cfe03bc
Compare
See these PRs from wasm-tools for additional context: bytecodealliance/wasm-tools#1687 bytecodealliance/wasm-tools#1741
With an eye towards making the discussion in
component-model
a reality, the commits in this PR update thewasm-tools
to removeNote that the change to
wit-parser
is a semver breaking change, as we're removing a piece of theStability
enum.