File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -265,6 +265,12 @@ let out_dir = env::var("OUT_DIR").unwrap();
265
265
Currently Cargo doesn't set the ` MAKEFLAGS ` variable,
266
266
but it's free for build scripts invoking GNU Make
267
267
to set it to the contents of ` CARGO_MAKEFLAGS ` .
268
+ * ` CARGO_PRIMARY_PACKAGE ` — This environment variable will be set if the package being
269
+ built is primary. Primary packages are the ones the user
270
+ selected on the command-line, either with ` -p ` flags or
271
+ the defaults based on the current directory and the default
272
+ workspace members.
273
+ This environment variable will not be set when building dependencies.
268
274
* ` CARGO_FEATURE_<name> ` — For each activated feature of the package being
269
275
built, this environment variable will be present
270
276
where ` <name> ` is the name of the feature uppercased
You can’t perform that action at this time.
0 commit comments