Skip to content

Conversation

@Chethan-rao
Copy link
Contributor

This PR updates the build script code to obtain cargo workspace member package names to use a better and more deterministic way to do so.

Previously, we used to perform string manipulation on the package ID format (obtained from the workspace_members field in cargo metadata --format-version=1), and the package ID format was not stabilized (until recently). The package ID format has been stabilized in Rust 1.77, and the stabilized format breaks our existing build scripts. This PR updates the build script code to instead obtain the workspace member package names using the Metadata::workspace_packages() method that the cargo_metadata crate provides.

@NishantJoshi00 NishantJoshi00 merged commit 2f08c4e into main Mar 21, 2024
@NishantJoshi00 NishantJoshi00 deleted the cargo-metadata-package-name branch March 21, 2024 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants