-
Notifications
You must be signed in to change notification settings - Fork 2.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
doc(features): Highlight the non-blocking feature gating technique #13307
Conversation
We already discussed non-blocking gates but the language makes it sound like it was limited to `config.toml`. Since I haven't been touching that, I had always overlooked that section. This change brings the blocking / non-blocking decision front and center. To support this, the later sections focus more on mechanisms (the gate) rather than on what is being done (new syntax for `cargo-features`). I also feel this makes the content more scannable. This is adapted from what I did for `[lints]` (see rust-lang#12148).
r? @weihanglo (rustbot has picked a reviewer for you, use r? to override) |
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.
Looks good. Feel free to address nits or r=me
.
BTW, by “non-blocking feature gate” does it refer to a feature gate that won't bail out but warn/ignore?
Yes. Didn't end up using that term in the PR. |
nits addressed @bors r=weihanglo |
☀️ Test successful - checks-actions |
Update cargo 2 commits in 1cff2ee6b92e0ad3f87c44b70b28f788b2528b3c..1ae631085f01c1a72d05df1ec81f3759a8360042 2024-01-16 16:56:57 +0000 to 2024-01-17 17:26:41 +0000 - fix(json-msg): use pkgid spec in in JSON messages (rust-lang/cargo#13311) - doc(features): Highlight the non-blocking feature gating technique (rust-lang/cargo#13307) r? oli-obk Could you check if this fixes miri build?
Update cargo 2 commits in 1cff2ee6b92e0ad3f87c44b70b28f788b2528b3c..1ae631085f01c1a72d05df1ec81f3759a8360042 2024-01-16 16:56:57 +0000 to 2024-01-17 17:26:41 +0000 - fix(json-msg): use pkgid spec in in JSON messages (rust-lang/cargo#13311) - doc(features): Highlight the non-blocking feature gating technique (rust-lang/cargo#13307) r? oli-obk Could you check if this fixes miri build?
We already discussed non-blocking gates but the language makes it sound like it was limited to
config.toml
.Since I haven't been touching that, I had always overlooked that section.
This change brings the blocking / non-blocking decision front and center.
To support this, the later sections focus more on mechanisms (the gate) rather than on what is being done (new syntax for
cargo-features
).I also feel this makes the content more scannable.
This is adapted from what I did for
[lints]
(see #12148).