We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54df3c7 commit 706e4c8Copy full SHA for 706e4c8
src/doc/src/reference/build-scripts.md
@@ -403,6 +403,13 @@ variables like `TARGET` that [Cargo sets for build scripts][build-env]. The
403
environment variables in use are those received by `cargo` invocations, not
404
those received by the executable of the build script.
405
406
+As of 1.46, using [`env!`][env-macro] and [`option_env!`][option-env-macro] in
407
+source code will automatically detect changes and trigger rebuilds.
408
+`rerun-if-env-changed` is no longer needed for variables already referenced by
409
+these macros.
410
+
411
+[option-env-macro]: ../../std/macro.option_env.html
412
413
## The `links` Manifest Key
414
415
The `package.links` key may be set in the `Cargo.toml` manifest to declare
0 commit comments