You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/doc/src/reference/environment-variables.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -225,7 +225,8 @@ Note that if one of these values is not provided in the manifest, the
225
225
corresponding environment variable is set to the empty string, `""`.
226
226
227
227
*`CARGO` --- Path to the `cargo` binary performing the build.
228
-
*`CARGO_MANIFEST_DIR` --- The directory containing the manifest of your package.
228
+
*`CARGO_MANIFEST_DIR` --- The directory containing the manifest of your package. When running a [Cargo script], this variable will be set to the script location.
229
+
*`CARGO_MANIFEST_PATH` --- The path to the manifest of your package.
229
230
*`CARGO_PKG_VERSION` --- The full version of your package.
230
231
*`CARGO_PKG_VERSION_MAJOR` --- The major version of your package.
231
232
*`CARGO_PKG_VERSION_MINOR` --- The minor version of your package.
@@ -274,6 +275,7 @@ corresponding environment variable is set to the empty string, `""`.
0 commit comments