Replies: 5 comments 3 replies
-
CCing previous participants in discussions about |
Beta Was this translation helpful? Give feedback.
-
Yeah I'm really curious here. My initial gut reaction is that unstable should be included by default as you have purposefully marked it as unstable and that is introspectable by a consumer of the interface. However, I also admit that there has been a lot of debate around the semantics of |
Beta Was this translation helpful? Give feedback.
-
Personally I'd expect these to be included by default in WIT-distribution mechanisms like wkg but still removed-by-default when processing (for example bindings generators). That ensures that everyone's got a consistent view of WIT files no matter the source (e.g. git checkout, wasi.dev, vendored copy, etc). The theory is that the various bits and pieces of toolilng were all designed to enable this where unstable features show up in text but quickly go away if not otherwise explicitly enabled. That way if you do nothing out-of-your-way then features are all off-by-default. To me this is similar to how you can view documentation for nightly APIs in doc.rust-lang.org/std where you can see what's coming if there's not something that's already meeting your needs. |
Beta Was this translation helpful? Give feedback.
-
One challenge with 0.2.x releases is that feature gates were added after 0.2.0. There was a concern of maintaining backwards compatibility for parsers, but I think practically this is a non-issue. |
Beta Was this translation helpful? Give feedback.
-
Resolved by #147 |
Beta Was this translation helpful? Give feedback.
-
Context: #143
I think both options here are defensible:
@unstable
feature is in the source and requires opt-in, so include it in the release@unstable
feature is unstable, so omit it from the stable releaseI guess its a question of the semantics of
@unstable
: does it mean "this is part of the current version but not covered by backward-compat rules" or does it mean "this may become part of a future version"?Beta Was this translation helpful? Give feedback.
All reactions