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 94e21ad commit 48cd236Copy full SHA for 48cd236
src/doc/src/reference/environment-variables.md
@@ -188,6 +188,9 @@ let version = env!("CARGO_PKG_VERSION");
188
189
`version` will now contain the value of `CARGO_PKG_VERSION`.
190
191
+Note that if one of these values is not provided in the manifest, the
192
+corresponding environment variable is set to the empty string, `""`.
193
+
194
* `CARGO` — Path to the `cargo` binary performing the build.
195
* `CARGO_MANIFEST_DIR` — The directory containing the manifest of your package.
196
* `CARGO_PKG_VERSION` — The full version of your package.
0 commit comments