Commit graph

18 commits

Author SHA1 Message Date
Ed Page
675224b3a0 test(config): Shift to config.toml 2024-01-26 13:40:46 -06:00
Arlo Siemsen
687ace1ddc Merge higher precedence config lists later
When merging configuration lists, the current order does not match
the expected precedence. This makes merged lists follow precedence
order, with higher precedence items merged later in lists.
2023-08-16 11:21:38 -05:00
Ed Page
6007f05a85 chore: Update to toml v0.6, toml_edit v0.18
`toml` replaces `toml_edit::easy`, using `toml_edit` as its parser.
2023-01-19 15:26:28 -06:00
Ed Page
ed8b85f10e chore: Fix typos 2023-01-10 20:03:11 -06:00
Jacob Finkelman
d8df1425ea unstable_cli_options 2022-12-12 17:51:21 +00:00
Weihang Lo
fafb8a9dac
test(config_cli): multi-occurrence cli args with paths 2022-09-16 15:32:00 +01:00
Jon Gjengset
39c3173619 Stabilize --config
FCP
https://github.com/rust-lang/cargo/issues/7722#issuecomment-1114369809

Closes #7722.
2022-06-17 22:46:04 +00:00
Jon Gjengset
10c4f32682 Disallow setting registry tokens with --config
As per the concern `restricted-values` in
https://github.com/rust-lang/cargo/issues/7722#issuecomment-1101784126.
2022-04-19 09:43:25 -07:00
Jon Gjengset
51917b450d Enforce no decorators in --config values 2022-01-24 12:05:12 -08:00
Jon Gjengset
f962ec1f44 Merge remote-tracking branch 'upstream/master' into config-cli-simple 2022-01-20 12:31:35 -08:00
Ed Page
320c279f43 Port cargo from toml-rs to toml_edit
Benefits:
- A TOML 1.0 compliant parser
- Unblock future work
  - Have `cargo init` add the current crate to the workspace, rather
    than error
  - #5586: Upstream `cargo-add`
2022-01-13 09:27:27 -06:00
Jon Gjengset
934d2d63f5 Use toml_edit to check dotted key for --config 2021-12-14 14:25:32 -08:00
Jon Gjengset
18871b3394 Merge remote-tracking branch 'upstream/master' into config-cli-simple 2021-12-14 12:16:59 -08:00
Jon Gjengset
80fbfed287 Check --config for dotted keys only
This addresses the remaining unresolved issue for `config-cli` (#7722).
2021-12-06 13:25:53 -08:00
Steven Joruk
ed9ec388fd Support term.quiet configuration
This matches how users can specify `--verbose` on the command line, or
`term.verbose` in the configuration.
2021-12-03 06:25:02 +00:00
Alex Crichton
3a18c89a55 Migrate from the failure crate to anyhow
The `anyhow` crate interoperates with the `std::error::Error` trait
rather than a custom `Fail` trait, and this is the general trend of
error handling in Rust as well.

Note that this is mostly mechanical (sed) and intended to get the test
suite passing. As usual there's still more idiomatic cleanup that can
happen, but that's left to later commits.
2020-01-07 16:50:09 -08:00
Eric Huss
e7eda2f91f Implement config-include. 2019-12-19 09:44:02 -08:00
Eric Huss
91015d52ce Add --config CLI option. 2019-12-19 09:44:02 -08:00