Closed
Description
Problem
The pkg_id
fields in the output of cargo build --unit-graph
are still in the PackageId
format, while cargo metadata
and build JSON messages have switched to PackageIdSpec
(#12914, #13311). As a result, package information cannot be directly cross-referenced between the unit graph and cargo metadata
and/or JSON messages.
Steps
Run cargo build --unit-graph -Z unstable-options
on a project with a nightly cargo
Possible Solution(s)
Change the pkg_id
field to be a PackageIdSpec
instead, like the id
field in cargo metadata
and package_id
field in JSON messages.
Notes
No response
Version
cargo 1.86.0-nightly (ce948f461 2025-02-14)
release: 1.86.0-nightly
commit-hash: ce948f4616e3d4277e30c75c8bb01e094910df39
commit-date: 2025-02-14
host: aarch64-apple-darwin
libgit2: 1.9.0 (sys:0.20.0 vendored)
libcurl: 8.7.1 (sys:0.4.79+curl-8.12.0 system ssl:(SecureTransport) LibreSSL/3.3.6)
ssl: OpenSSL 3.4.0 22 Oct 2024
os: Mac OS 15.3.1 [64-bit]