Skip to content

Commit

Permalink
add doc note about environment variables for missing manifest keys
Browse files Browse the repository at this point in the history
  • Loading branch information
sharnoff committed Jan 7, 2021
1 parent 94e21ad commit 48cd236
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/doc/src/reference/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ let version = env!("CARGO_PKG_VERSION");

`version` will now contain the value of `CARGO_PKG_VERSION`.

Note that if one of these values is not provided in the manifest, the
corresponding environment variable is set to the empty string, `""`.

* `CARGO` — Path to the `cargo` binary performing the build.
* `CARGO_MANIFEST_DIR` — The directory containing the manifest of your package.
* `CARGO_PKG_VERSION` — The full version of your package.
Expand Down

0 comments on commit 48cd236

Please sign in to comment.