From c1d79c2958a5b8fa3f95a07786301195eafa34bd Mon Sep 17 00:00:00 2001 From: Urgau Date: Mon, 6 May 2024 21:33:56 +0200 Subject: [PATCH] Add check-cfg blog post in the documentation --- src/doc/src/reference/build-scripts.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/doc/src/reference/build-scripts.md b/src/doc/src/reference/build-scripts.md index 797235d84e59..d8f1cff9ce27 100644 --- a/src/doc/src/reference/build-scripts.md +++ b/src/doc/src/reference/build-scripts.md @@ -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. @@ -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}