Repository navigation
Conversation
This was referenced Sep 21, 2026
Contributor
|
I'm good with this once the earlier PRs are merged |
pull Bot
pushed a commit
to Little-Star888/cargo
that referenced
this pull request
Sep 21, 2026
…-lang#17497) ### What does this PR try to resolve? As part of rust-lang#16960, this PR adds a new unstable feature which will be used to gate the `builtin = true` syntax on builtin dependencies. This PR is part of a chain: - rust-lang#17497 - rust-lang#17498 - rust-lang#17499 - rust-lang#17500 ### How to test and review this PR? This PR adds a unit test to demonstrate that the allowed feature gate works. It also adds documentation for the feature gate. `cargo test` passes on all commits. r? @Muscraft
weihanglo
reviewed
Sep 22, 2026
| edition = "2021" | ||
|
|
||
| [dependencies] | ||
| dep = { path = "dep", version = "0.1.0", builtin = false } |
Contributor
Author
There was a problem hiding this comment.
Rejected this behaviour in the previous PR and so dropped the test here
adamgemmell
force-pushed
the
dev/builtins/manifest-regression-tests
branch
from
September 23, 2026 12:48
c4e7364 to
235f7d1
Compare
This comment has been minimized.
This comment has been minimized.
adamgemmell
force-pushed
the
dev/builtins/manifest-regression-tests
branch
3 times, most recently
from
September 23, 2026 14:24
cb2f27a to
50097e5
Compare
adamgemmell
pushed a commit
to adamgemmell/cargo
that referenced
this pull request
Sep 23, 2026
…ng#17498) *[View all comments](https://triagebot.infra.rust-lang.org/gh-comments/rust-lang/cargo/pull/17498)* ### What does this PR try to resolve? As part of rust-lang#16960, this PR adds the required syntax to the manifest to specify builtin dependencies. The main validation present in this PR is that `builtin = true` being present anywhere requires the `builtin-dependencies` feature in order to avoid accidentally introducing any new stable behaviour in later PRs. Invalid forms of builtin dependencies are rejected in a later PR. For now builtin dependencies panic with a `todo!()` as there is no `SourceKind` variant to represent them. This PR is part of a chain: - rust-lang#17497 - rust-lang#17502 - rust-lang#17498 - rust-lang#17499 - rust-lang#17500 ### How to test and review this PR? The PR first introduces the manifest syntax, then builds on that by adding various tests that `builtin = true` requires an unstable feature. Cargo test passes on every commit. 🤖 LLM disclosure: I used Codex to help me understand the codebase and asked it to review my branch before sharing it upstream. I also used it in limited (pre-arranged) ways to generate code, including resolving merge conflicts and updating test assertions. All code was originally written by hand. r? @weihanglo
adamgemmell
force-pushed
the
dev/builtins/manifest-regression-tests
branch
from
September 23, 2026 14:55
50097e5 to
2b1d5be
Compare
This comment has been minimized.
This comment has been minimized.
adamgemmell
pushed a commit
to adamgemmell/cargo
that referenced
this pull request
Sep 23, 2026
…g#17499) ### What does this PR try to resolve? As part of rust-lang#16960 this PR adds validation checks to reject invalid forms of the manifest including builtin dependencies, such as when they are present in the `build-dependencies` section or combined with other sources. The [RFC](https://rust-lang.github.io/rfcs/3875-build-std-explicit-dependencies.html#) specifies what forms of builtin dependencies are valid. This PR is part of a chain: - rust-lang#17497 - rust-lang#17502 - rust-lang#17498 - rust-lang#17499 - rust-lang#17500 ### How to test and review this PR? The PR consists of commits which add a test demonstrating some undesired behaviour and then fixes that in the following commit. Cargo test passes on every commit. 🤖 LLM disclosure: I used Codex to help me understand the codebase and asked it to review my branch before sharing it upstream. I also used it in limited (pre-arranged) ways to generate code, including resolving merge conflicts and updating test assertions. All code was originally written by hand. r? @weihanglo
adamgemmell
force-pushed
the
dev/builtins/manifest-regression-tests
branch
from
September 23, 2026 16:17
2b1d5be to
55db400
Compare
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
approved these changes
Sep 23, 2026
weihanglo
enabled auto-merge
September 23, 2026 16:41
rust-bors Bot
pushed a commit
to rust-lang/rust
that referenced
this pull request
Sep 25, 2026
Update cargo submodule 5 commits in 98a09e7e7d62850f14e5b6132101fc1edd19a16f..3d7cf6e937d6127d0f49881bf689c560b36d35c4 2026-09-21 19:03:16 +0000 to 2026-09-25 01:47:29 +0000 - fix(package): preserve feature metadata in normalized manifests (rust-lang/cargo#17509) - fix(diag): Don't report unused normal deps when static libs are skipped (rust-lang/cargo#17515) - test(builtin-deps): Additional manifest regression tests (rust-lang/cargo#17500) - fix(builtin-deps): Builtin dependencies manifest validation (rust-lang/cargo#17499) - feat(builtin-deps): Add builtin dependencies manifest syntax (rust-lang/cargo#17498) r? ghost
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?
As part of #16960 this PR adds a series of tests that already pass, confirming existing behaviour and preventing any future regressions.
This PR is part of a chain:
builtin-dependenciesfeature #17497How to test and review this PR?
Review all at once or commit-by-commit, there's no overlap between commits. Cargo test passes on every commit.
🤖 LLM disclosure: I used Codex to help me understand the codebase and asked it to review my branch before sharing it upstream. I also used it in limited (pre-arranged) ways to generate code, including resolving merge conflicts and updating test assertions. All code was originally written by hand.
r? @weihanglo