Skip to content

Commit

Permalink
docs(env): CARGO_PRIMARY_PACKAGE always set for workspace members
Browse files Browse the repository at this point in the history
  • Loading branch information
weihanglo committed Oct 12, 2024
1 parent f5e6987 commit ffca7be
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/doc/src/reference/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,10 @@ corresponding environment variable is set to the empty string, `""`.
* `CARGO_PRIMARY_PACKAGE` --- This environment variable will be set if the
package being built is primary. Primary packages are the ones the user
selected on the command-line, either with `-p` flags or the defaults based
on the current directory and the default workspace members. This environment
variable will not be set when building dependencies. This is only set when
compiling the package (not when running binaries or tests).
on the current directory and the default workspace members.
This variable will not be set when building dependencies,
unless a dependency is also a workspace member that was also selected on the command-line.
This is only set when compiling the package (not when running binaries or tests).
* `CARGO_TARGET_TMPDIR` --- Only set when building [integration test] or benchmark code.
This is a path to a directory inside the target directory
where integration tests or benchmarks are free to put any data needed by
Expand Down

0 comments on commit ffca7be

Please sign in to comment.