Repository navigation
fix(config)!: Polish the API - #17736
Merged
Merged
Conversation
…alues This matches `Env::from_map` and `ConfigValue::from_toml`.
This was missing from the original migration and better rounds out the API of "low level loading". The high level loading is still needed.
Collaborator
|
r? @weihanglo rustbot has assigned @weihanglo. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
weihanglo
approved these changes
Nov 14, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 14, 2026
Member
re-queuing |
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 14, 2026
Collaborator
|
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
weihanglo
enabled auto-merge
November 14, 2026 15:39
rust-bors Bot
pushed a commit
to rust-lang/rust
that referenced
this pull request
Nov 16, 2026
Update cargo submodule 22 commits in ede6cefea9731cb595942338824c2f9a610b8189..f93c676e3e7ab1aee08dc95d869700f6b99a1a20 2026-11-11 12:33:16 +0000 to 2026-11-15 17:27:10 +0000 - fix(config)!: Clean up ConfigRelativePath (rust-lang/cargo#17742) - Add support for `annotate-snippets`'s `no-graphics` output format (rust-lang/cargo#17735) - fix(config)!: Polish the API (rust-lang/cargo#17736) - chore(deps): update rust crate rusqlite to 0.42.0 (rust-lang/cargo#17723) - perf(compile)!: Switch dev profile to debug=lines-and-tables-only (rust-lang/cargo#17518) - test: Add unordered to pub_priv::verify_mix_cargo_feature_z (rust-lang/cargo#17737) - Reworked output mtime tracking (rust-lang/cargo#17732) - fix(trim-paths): sanitize absolute source paths in fingerprint (rust-lang/cargo#17556) - reference: remove implied meaning (rust-lang/cargo#17731) - chore(deps): update rust crate opener to 0.9.0 (rust-lang/cargo#17722) - chore(deps): update taiki-e/install-action action to v2.90.3 (rust-lang/cargo#17724) - chore(deps): update actions/checkout action to v7 (rust-lang/cargo#17725) - feat(config): Iterate on config.toml's schema (rust-lang/cargo#17714) - chore(deps): update msrv to v1.100 (rust-lang/cargo#17721) - chore(deps): update actions/upload-artifact action to v7 (rust-lang/cargo#17726) - chore(deps): update crate-ci/typos action to v1.52.1 (rust-lang/cargo#17720) - chore: fix CI errors due to 1.100 (rust-lang/cargo#17719) - Unified invoked.timestamp location for compilation and build script units (rust-lang/cargo#17718) - refactor: Misc cleanup while playing with config (rust-lang/cargo#17713) - feat: OSC 8 link for package name in cargo info (rust-lang/cargo#17710) - chore: Update annotate-snippets to 0.12.18 (rust-lang/cargo#17712) - feat(config): Add a generated schema file (rust-lang/cargo#17708)
rust-bors Bot
pushed a commit
to rust-lang/rust
that referenced
this pull request
Nov 17, 2026
Update cargo submodule 22 commits in ede6cefea9731cb595942338824c2f9a610b8189..f93c676e3e7ab1aee08dc95d869700f6b99a1a20 2026-11-11 12:33:16 +0000 to 2026-11-15 17:27:10 +0000 - fix(config)!: Clean up ConfigRelativePath (rust-lang/cargo#17742) - Add support for `annotate-snippets`'s `no-graphics` output format (rust-lang/cargo#17735) - fix(config)!: Polish the API (rust-lang/cargo#17736) - chore(deps): update rust crate rusqlite to 0.42.0 (rust-lang/cargo#17723) - perf(compile)!: Switch dev profile to debug=lines-and-tables-only (rust-lang/cargo#17518) - test: Add unordered to pub_priv::verify_mix_cargo_feature_z (rust-lang/cargo#17737) - Reworked output mtime tracking (rust-lang/cargo#17732) - fix(trim-paths): sanitize absolute source paths in fingerprint (rust-lang/cargo#17556) - reference: remove implied meaning (rust-lang/cargo#17731) - chore(deps): update rust crate opener to 0.9.0 (rust-lang/cargo#17722) - chore(deps): update taiki-e/install-action action to v2.90.3 (rust-lang/cargo#17724) - chore(deps): update actions/checkout action to v7 (rust-lang/cargo#17725) - feat(config): Iterate on config.toml's schema (rust-lang/cargo#17714) - chore(deps): update msrv to v1.100 (rust-lang/cargo#17721) - chore(deps): update actions/upload-artifact action to v7 (rust-lang/cargo#17726) - chore(deps): update crate-ci/typos action to v1.52.1 (rust-lang/cargo#17720) - chore: fix CI errors due to 1.100 (rust-lang/cargo#17719) - Unified invoked.timestamp location for compilation and build script units (rust-lang/cargo#17718) - refactor: Misc cleanup while playing with config (rust-lang/cargo#17713) - feat: OSC 8 link for package name in cargo info (rust-lang/cargo#17710) - chore: Update annotate-snippets to 0.12.18 (rust-lang/cargo#17712) - feat(config): Add a generated schema file (rust-lang/cargo#17708)
github-actions Bot
pushed a commit
to rust-lang/stdarch
that referenced
this pull request
Nov 19, 2026
Update cargo submodule 22 commits in ede6cefea9731cb595942338824c2f9a610b8189..f93c676e3e7ab1aee08dc95d869700f6b99a1a20 2026-11-11 12:33:16 +0000 to 2026-11-15 17:27:10 +0000 - fix(config)!: Clean up ConfigRelativePath (rust-lang/cargo#17742) - Add support for `annotate-snippets`'s `no-graphics` output format (rust-lang/cargo#17735) - fix(config)!: Polish the API (rust-lang/cargo#17736) - chore(deps): update rust crate rusqlite to 0.42.0 (rust-lang/cargo#17723) - perf(compile)!: Switch dev profile to debug=lines-and-tables-only (rust-lang/cargo#17518) - test: Add unordered to pub_priv::verify_mix_cargo_feature_z (rust-lang/cargo#17737) - Reworked output mtime tracking (rust-lang/cargo#17732) - fix(trim-paths): sanitize absolute source paths in fingerprint (rust-lang/cargo#17556) - reference: remove implied meaning (rust-lang/cargo#17731) - chore(deps): update rust crate opener to 0.9.0 (rust-lang/cargo#17722) - chore(deps): update taiki-e/install-action action to v2.90.3 (rust-lang/cargo#17724) - chore(deps): update actions/checkout action to v7 (rust-lang/cargo#17725) - feat(config): Iterate on config.toml's schema (rust-lang/cargo#17714) - chore(deps): update msrv to v1.100 (rust-lang/cargo#17721) - chore(deps): update actions/upload-artifact action to v7 (rust-lang/cargo#17726) - chore(deps): update crate-ci/typos action to v1.52.1 (rust-lang/cargo#17720) - chore: fix CI errors due to 1.100 (rust-lang/cargo#17719) - Unified invoked.timestamp location for compilation and build script units (rust-lang/cargo#17718) - refactor: Misc cleanup while playing with config (rust-lang/cargo#17713) - feat: OSC 8 link for package name in cargo info (rust-lang/cargo#17710) - chore: Update annotate-snippets to 0.12.18 (rust-lang/cargo#17712) - feat(config): Add a generated schema file (rust-lang/cargo#17708)
ubiratansoares
pushed a commit
to ubiratansoares/rust-analyzer
that referenced
this pull request
Nov 19, 2026
Update cargo submodule 22 commits in ede6cefea9731cb595942338824c2f9a610b8189..f93c676e3e7ab1aee08dc95d869700f6b99a1a20 2026-11-11 12:33:16 +0000 to 2026-11-15 17:27:10 +0000 - fix(config)!: Clean up ConfigRelativePath (rust-lang/cargo#17742) - Add support for `annotate-snippets`'s `no-graphics` output format (rust-lang/cargo#17735) - fix(config)!: Polish the API (rust-lang/cargo#17736) - chore(deps): update rust crate rusqlite to 0.42.0 (rust-lang/cargo#17723) - perf(compile)!: Switch dev profile to debug=lines-and-tables-only (rust-lang/cargo#17518) - test: Add unordered to pub_priv::verify_mix_cargo_feature_z (rust-lang/cargo#17737) - Reworked output mtime tracking (rust-lang/cargo#17732) - fix(trim-paths): sanitize absolute source paths in fingerprint (rust-lang/cargo#17556) - reference: remove implied meaning (rust-lang/cargo#17731) - chore(deps): update rust crate opener to 0.9.0 (rust-lang/cargo#17722) - chore(deps): update taiki-e/install-action action to v2.90.3 (rust-lang/cargo#17724) - chore(deps): update actions/checkout action to v7 (rust-lang/cargo#17725) - feat(config): Iterate on config.toml's schema (rust-lang/cargo#17714) - chore(deps): update msrv to v1.100 (rust-lang/cargo#17721) - chore(deps): update actions/upload-artifact action to v7 (rust-lang/cargo#17726) - chore(deps): update crate-ci/typos action to v1.52.1 (rust-lang/cargo#17720) - chore: fix CI errors due to 1.100 (rust-lang/cargo#17719) - Unified invoked.timestamp location for compilation and build script units (rust-lang/cargo#17718) - refactor: Misc cleanup while playing with config (rust-lang/cargo#17713) - feat: OSC 8 link for package name in cargo info (rust-lang/cargo#17710) - chore: Update annotate-snippets to 0.12.18 (rust-lang/cargo#17712) - feat(config): Add a generated schema file (rust-lang/cargo#17708)
github-actions Bot
pushed a commit
to rust-lang/rustc-dev-guide
that referenced
this pull request
Nov 23, 2026
Update cargo submodule 22 commits in ede6cefea9731cb595942338824c2f9a610b8189..f93c676e3e7ab1aee08dc95d869700f6b99a1a20 2026-11-11 12:33:16 +0000 to 2026-11-15 17:27:10 +0000 - fix(config)!: Clean up ConfigRelativePath (rust-lang/cargo#17742) - Add support for `annotate-snippets`'s `no-graphics` output format (rust-lang/cargo#17735) - fix(config)!: Polish the API (rust-lang/cargo#17736) - chore(deps): update rust crate rusqlite to 0.42.0 (rust-lang/cargo#17723) - perf(compile)!: Switch dev profile to debug=lines-and-tables-only (rust-lang/cargo#17518) - test: Add unordered to pub_priv::verify_mix_cargo_feature_z (rust-lang/cargo#17737) - Reworked output mtime tracking (rust-lang/cargo#17732) - fix(trim-paths): sanitize absolute source paths in fingerprint (rust-lang/cargo#17556) - reference: remove implied meaning (rust-lang/cargo#17731) - chore(deps): update rust crate opener to 0.9.0 (rust-lang/cargo#17722) - chore(deps): update taiki-e/install-action action to v2.90.3 (rust-lang/cargo#17724) - chore(deps): update actions/checkout action to v7 (rust-lang/cargo#17725) - feat(config): Iterate on config.toml's schema (rust-lang/cargo#17714) - chore(deps): update msrv to v1.100 (rust-lang/cargo#17721) - chore(deps): update actions/upload-artifact action to v7 (rust-lang/cargo#17726) - chore(deps): update crate-ci/typos action to v1.52.1 (rust-lang/cargo#17720) - chore: fix CI errors due to 1.100 (rust-lang/cargo#17719) - Unified invoked.timestamp location for compilation and build script units (rust-lang/cargo#17718) - refactor: Misc cleanup while playing with config (rust-lang/cargo#17713) - feat: OSC 8 link for package name in cargo info (rust-lang/cargo#17710) - chore: Update annotate-snippets to 0.12.18 (rust-lang/cargo#17712) - feat(config): Add a generated schema file (rust-lang/cargo#17708)
weihanglo
added a commit
to weihanglo/cargo
that referenced
this pull request
Nov 27, 2026
…e to `Scope` (rust-lang#17822) ### What does this PR try to resolve? This separates two concepts that were tied together in `Definition` and is part of the follow up work mentioned in rust-lang#17736. With solidifying the concept of `Scope`, we are also moving closer to scope-controlled operations in `cargo config` (rust-lang#9301). ### Notes to reviewers I did not (yet) update the serde protocol for `Definition`. For rust-lang#9301, I'd also want to split `Scope::Path` into `Scope::User` and `Scope::Local`. --- 🤖 LLM involvement: Refactors like changing from tuple-variant constructors to functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR try to resolve?
This is a lot of the API polish that was deferred out of #17705.
Notes to reviewers
I was looking at the docs generated by
cargo docto help with the polishing.Still missing from the API
cargo-util-terminalas a depDefinition(see refactor(config): Pull out the ConfigStore into its own module #17614 (comment))Still missing generally
Future refactors:
toml_edittotoml_parserfor detecting extra syntax being used🤖 LLM involvement: planning, prototyping, and moving code