Skip to content

Conversation

@secona
Copy link
Contributor

@secona secona commented Dec 17, 2025

What does this PR try to resolve?

This PR supports creating an in-memory only Manifest.

Part of #16290

How to test and review this PR?

No tests should change as this is for cargo-as-a-library.

@rustbot rustbot added A-build-execution Area: anything dealing with executing the compiler A-manifest Area: Cargo.toml issues A-workspaces Area: workspaces Command-fix Command-vendor labels Dec 17, 2025
@secona secona force-pushed the in-memory-manifest branch from f857ec0 to 8d25903 Compare December 17, 2025 16:21
@secona secona marked this pull request as ready for review December 17, 2025 17:06
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 17, 2025
@rustbot
Copy link
Collaborator

rustbot commented Dec 17, 2025

r? @epage

rustbot has assigned @epage.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@secona secona force-pushed the in-memory-manifest branch from 8d25903 to c9fa22d Compare December 17, 2025 17:08
@epage epage marked this pull request as draft December 17, 2025 19:13
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 17, 2025
@epage
Copy link
Contributor

epage commented Dec 17, 2025

Because of #16409 (comment), I'm moving this back to a Draft

@secona secona force-pushed the in-memory-manifest branch from c9fa22d to fae3b40 Compare December 18, 2025 23:21
@secona secona force-pushed the in-memory-manifest branch from fae3b40 to 1dfa6b3 Compare December 19, 2025 20:52
Make `document`, `original_toml` and `contents` optional to allow
creating Manifests from in-memory data.
Make `contents` and `spans` optional in ManifestErrorContext to allow
disabling diagnostics.
@secona secona force-pushed the in-memory-manifest branch 4 times, most recently from 3f8a05f to 056dfae Compare December 22, 2025 08:19
@secona secona force-pushed the in-memory-manifest branch from 7d1c206 to 1dd2a8e Compare January 4, 2026 05:07
@secona secona marked this pull request as ready for review January 4, 2026 05:15
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 4, 2026
@secona secona force-pushed the in-memory-manifest branch from 1dd2a8e to 10e0e22 Compare January 6, 2026 00:42
@secona secona force-pushed the in-memory-manifest branch from 10e0e22 to cdf0891 Compare January 8, 2026 00:05
Copy link
Contributor

@epage epage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@epage epage added this pull request to the merge queue Jan 8, 2026
Merged via the queue into rust-lang:master with commit 91f1a8a Jan 8, 2026
29 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 8, 2026
@secona secona deleted the in-memory-manifest branch January 8, 2026 18:40
rust-bors bot added a commit to rust-lang/rust that referenced this pull request Jan 9, 2026
Update cargo submodule

27 commits in 94c368ad2b9db0f0da5bdd8421cea13786ce4412..8c133afcd5e0d69932fe11f5907683723f8d361d
2025-12-26 19:39:15 +0000 to 2026-01-09 03:50:15 +0000
- Isolate build script metadata progation between std and non-std crates (rust-lang/cargo#16489)
- Add Clippy like lint groups (rust-lang/cargo#16464)
- feat: in-memory only `Manifest` (rust-lang/cargo#16409)
- Fixed incorrect version comparision during build script dependency selection (rust-lang/cargo#16486)
- refactor: new type for unit index (rust-lang/cargo#16485)
- feat(test): Make CARGO_BIN_EXE_ available at runtime  (rust-lang/cargo#16421)
- fix(package): detect dirty files when run from workspace member (rust-lang/cargo#16479)
- fix(timing)!: remove `--timings=<FMT>` optional format values (rust-lang/cargo#16420)
- docs(unstable): expand docs for `-Zbuild-analysis` (rust-lang/cargo#16476)
- test: add `-Zunstable-options` with custom targets (rust-lang/cargo#16467)
- feat(report): add cargo report rebuilds  (rust-lang/cargo#16456)
- feat(test-support): Use test name for dir when running tests (rust-lang/cargo#16121)
- refactor: Migrate some cases to expect/reason (rust-lang/cargo#16461)
- docs(build-script): clarify OUT_DIR is not cleaned between builds (rust-lang/cargo#16437)
- chore: Update dependencies (rust-lang/cargo#16460)
- Update handlebars to 6.4.0 (rust-lang/cargo#16457)
- chore(deps): update alpine docker tag to v3.23 (rust-lang/cargo#16454)
- Any build scripts can now use cargo::metadata=KEY=VALUE (rust-lang/cargo#16436)
- fix(log): add `dependencies` field to `UnitRegistered` (rust-lang/cargo#16448)
- Implement fine grain locking for `build-dir` (rust-lang/cargo#16155)
- feat(resolver): List features when no close match (rust-lang/cargo#16445)
- feat(report): new command `cargo report sessions` (rust-lang/cargo#16428)
- feat (patch): Display where the patch was defined in patch-related error messages (rust-lang/cargo#16407)
- test(build-rs): Reduce from 'build' to 'check' where possible (rust-lang/cargo#16444)
- feat(toml): TOML 1.1 parse support (rust-lang/cargo#16415)
- feat(report): support --manifest-path in `cargo report timings` (rust-lang/cargo#16441)
- fix(vendor): recursively filter git files in subdirectories (rust-lang/cargo#16439)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-build-execution Area: anything dealing with executing the compiler A-manifest Area: Cargo.toml issues A-workspaces Area: workspaces Command-fix Command-vendor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants