Add check-cfg blog post in the documentation

This commit is contained in:
Urgau 2024-05-06 21:33:56 +02:00
parent 84b9169cae
commit 5a43a45e67

View File

@ -258,6 +258,8 @@ identifier, the value should be a string.
### `cargo::rustc-check-cfg=CHECK_CFG` {#rustc-check-cfg}
*See the announcement [blog post][check-cfg-blog-post] for more a global view of the feature.*
Add to the list of expected config names and values that is used when checking
the _reachable_ cfg expressions.
@ -290,6 +292,7 @@ if foo_bar_condition {
}
```
[check-cfg-blog-post]: https://blog.rust-lang.org/2024/05/06/check-cfg.html
[option-check-cfg]: ../../rustc/command-line-arguments.md#option-check-cfg
### `cargo::rustc-env=VAR=VALUE` {#rustc-env}