@@ -96,7 +96,6 @@ Each new feature described below should explain how to use it.
96
96
* [ unit-graph] ( #unit-graph ) — Emits JSON for Cargo's internal graph structure.
97
97
* [ ` cargo rustc --print ` ] ( #rustc---print ) — Calls rustc with ` --print ` to display information from rustc.
98
98
* Configuration
99
- * [ config-cli] ( #config-cli ) — Adds the ability to pass configuration options on the command-line.
100
99
* [ config-include] ( #config-include ) — Adds the ability for config files to include other files.
101
100
* [ ` cargo config ` ] ( #cargo-config ) — Adds a new subcommand for viewing config files.
102
101
* Registries
@@ -475,40 +474,6 @@ The `-Z unstable-options` command-line option must be used in order to use
475
474
cargo check --keep-going -Z unstable-options
476
475
```
477
476
478
- ### config-cli
479
- * Tracking Issue: [ #7722 ] ( https://github.com/rust-lang/cargo/issues/7722 )
480
-
481
- The ` --config ` CLI option allows arbitrary config values to be passed
482
- in via the command-line. The argument should be in TOML syntax of KEY=VALUE:
483
-
484
- ``` console
485
- cargo +nightly -Zunstable-options --config net.git-fetch-with-cli=true fetch
486
- ```
487
-
488
- The ` --config ` option may be specified multiple times, in which case the
489
- values are merged in left-to-right order, using the same merging logic that
490
- multiple config files use. CLI values take precedence over environment
491
- variables, which take precedence over config files.
492
-
493
- Some examples of what it looks like using Bourne shell syntax:
494
-
495
- ``` console
496
- # Most shells will require escaping.
497
- cargo --config http.proxy=\"http://example.com\" …
498
-
499
- # Spaces may be used.
500
- cargo --config "net.git-fetch-with-cli = true" …
501
-
502
- # TOML array example. Single quotes make it easier to read and write.
503
- cargo --config 'build.rustdocflags = ["--html-in-header", "header.html"]' …
504
-
505
- # Example of a complex TOML key.
506
- cargo --config "target.'cfg(all(target_arch = \"arm\", target_os = \"none\"))'.runner = 'my-runner'" …
507
-
508
- # Example of overriding a profile setting.
509
- cargo --config profile.dev.package.image.opt-level=3 …
510
- ```
511
-
512
477
### config-include
513
478
* Tracking Issue: [ #7723 ] ( https://github.com/rust-lang/cargo/issues/7723 )
514
479
@@ -1598,3 +1563,9 @@ See the [Features chapter](features.md#dependency-features) for more information
1598
1563
The ` -Ztimings ` option has been stabilized as ` --timings ` in the 1.60 release.
1599
1564
(` --timings=html ` and the machine-readable ` --timings=json ` output remain
1600
1565
unstable and require ` -Zunstable-options ` .)
1566
+
1567
+ ### config-cli
1568
+
1569
+ The ` --config ` CLI option has been stabilized in the 1.63 release. See
1570
+ the [ config documentation] ( config.html#command-line-overrides ) for more
1571
+ information.
0 commit comments