Skip to content

Commit

Permalink
Add check-cfg blog post in the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau committed May 6, 2024
1 parent acbe98b commit c1d79c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/doc/src/reference/build-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 global view of the feature.*

Add to the list of expected config names and values that is used when checking
the _reachable_ cfg expressions.

Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit c1d79c2

Please sign in to comment.