mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Add check-cfg blog post in the documentation
This commit is contained in:
parent
84b9169cae
commit
5a43a45e67
@ -258,6 +258,8 @@ identifier, the value should be a string.
|
|||||||
|
|
||||||
### `cargo::rustc-check-cfg=CHECK_CFG` {#rustc-check-cfg}
|
### `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
|
Add to the list of expected config names and values that is used when checking
|
||||||
the _reachable_ cfg expressions.
|
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
|
[option-check-cfg]: ../../rustc/command-line-arguments.md#option-check-cfg
|
||||||
|
|
||||||
### `cargo::rustc-env=VAR=VALUE` {#rustc-env}
|
### `cargo::rustc-env=VAR=VALUE` {#rustc-env}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user