Skip to content

Commit 7cc6d95

Browse files
Add documentation for both environment variables
1 parent 50a537b commit 7cc6d95

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/doc/src/reference/environment-variables.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ let version = env!("CARGO_PKG_VERSION");
184184
* `CARGO_PKG_DESCRIPTION` — The description from the manifest of your package.
185185
* `CARGO_PKG_HOMEPAGE` — The home page from the manifest of your package.
186186
* `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).
187189
* `OUT_DIR` — If the package has a build script, this is set to the folder where the build
188190
script should place its output. See below for more information.
189191
(Only set during compilation.)

0 commit comments

Comments
 (0)