@@ -363,18 +363,19 @@ Can be overridden with the `--target-dir` CLI option.
363
363
##### ` build.rustflags `
364
364
* Type: string or array of strings
365
365
* Default: none
366
- * Environment: ` CARGO_BUILD_RUSTFLAGS ` or ` RUSTFLAGS `
366
+ * Environment: ` CARGO_BUILD_RUSTFLAGS ` or ` CARGO_ENCODED_RUSTFLAGS ` or ` RUSTFLAGS `
367
367
368
368
Extra command-line flags to pass to ` rustc ` . The value may be a array of
369
369
strings or a space-separated string.
370
370
371
371
There are three mutually exclusive sources of extra flags. They are checked in
372
372
order, with the first one being used:
373
373
374
- 1 . ` RUSTFLAGS ` environment variable.
375
- 2 . All matching ` target.<triple>.rustflags ` and ` target.<cfg>.rustflags `
374
+ 1 . ` CARGO_ENCODED_RUSTFLAGS ` environment variable.
375
+ 2 . ` RUSTFLAGS ` environment variable.
376
+ 3 . All matching ` target.<triple>.rustflags ` and ` target.<cfg>.rustflags `
376
377
config entries joined together.
377
- 3 . ` build.rustflags ` config value.
378
+ 4 . ` build.rustflags ` config value.
378
379
379
380
Additional flags may also be passed with the [ ` cargo rustc ` ] command.
380
381
@@ -399,16 +400,17 @@ appropriate profile setting.
399
400
##### ` build.rustdocflags `
400
401
* Type: string or array of strings
401
402
* Default: none
402
- * Environment: ` CARGO_BUILD_RUSTDOCFLAGS ` or ` RUSTDOCFLAGS `
403
+ * Environment: ` CARGO_BUILD_RUSTDOCFLAGS ` or ` CARGO_ENCODED_RUSTDOCFLAGS ` or ` RUSTDOCFLAGS `
403
404
404
405
Extra command-line flags to pass to ` rustdoc ` . The value may be a array of
405
406
strings or a space-separated string.
406
407
407
408
There are two mutually exclusive sources of extra flags. They are checked in
408
409
order, with the first one being used:
409
410
410
- 1 . ` RUSTDOCFLAGS ` environment variable.
411
- 2 . ` build.rustdocflags ` config value.
411
+ 1 . ` CARGO_ENCODED_RUSTDOCFLAGS ` environment variable.
412
+ 2 . ` RUSTDOCFLAGS ` environment variable.
413
+ 3 . ` build.rustdocflags ` config value.
412
414
413
415
Additional flags may also be passed with the [ ` cargo rustdoc ` ] command.
414
416
0 commit comments