From 2679bca97aaefd76c4969fc879f510294f9976f0 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Wed, 20 Dec 2023 15:37:45 +0100 Subject: [PATCH] Add link to explanations about dep-info files --- src/doc/unstable-book/src/compiler-flags/env.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/doc/unstable-book/src/compiler-flags/env.md b/src/doc/unstable-book/src/compiler-flags/env.md index 56f804fcd0c3..ac6d7474a9ba 100644 --- a/src/doc/unstable-book/src/compiler-flags/env.md +++ b/src/doc/unstable-book/src/compiler-flags/env.md @@ -8,7 +8,8 @@ This option flag allows to specify environment variables value at compile time t used by `env!` and `option_env!` macros. It also impacts `tracked_env::var` function from the `proc_macro` crate. -This information will be stored in the dep-info files. +This information will be stored in the dep-info files. For more information about +dep-info files, take a look [here](https://doc.rust-lang.org/cargo/guide/build-cache.html#dep-info-files). When retrieving an environment variable value, the one specified by `--env` will take precedence. For example, if you want have `PATH=a` in your environment and pass: