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 50a537b commit 7cc6d95Copy full SHA for 7cc6d95
src/doc/src/reference/environment-variables.md
@@ -184,6 +184,8 @@ let version = env!("CARGO_PKG_VERSION");
184
* `CARGO_PKG_DESCRIPTION` — The description from the manifest of your package.
185
* `CARGO_PKG_HOMEPAGE` — The home page from the manifest of your package.
186
* `CARGO_PKG_REPOSITORY` — The repository from the manifest of your package.
187
+* `CARGO_CRATE_NAME` — The name of the crate that is currently being compiled.
188
+* `CARGO_BIN_NAME` — The name of the binary that is currently being compiled (if it is a binary).
189
* `OUT_DIR` — If the package has a build script, this is set to the folder where the build
190
script should place its output. See below for more information.
191
(Only set during compilation.)
0 commit comments