Skip to content

Conversation

@bonzini
Copy link
Collaborator

@bonzini bonzini commented Nov 28, 2025

Many crates that have a build.rs will usually require an overlay with the translated meson/meson.build file. To avoid having to create a .wrap file just for this, when parsing Cargo.lock autodetect a directory in subproject/packagefiles/ and add it as the patch_directory.

Many crates that have a build.rs will usually require an overlay
with the translated meson/meson.build file.  To avoid having to
create a .wrap file, when parsing Cargo.lock autodetect a directory
in subproject/packagefiles/ and add it as the patch_directory.

Signed-off-by: Paolo Bonzini <[email protected]>
@bonzini bonzini added enhancement dependencies:cargo Issues related to using cargo subprojects labels Nov 28, 2025
@bonzini bonzini added this to the 1.11 milestone Nov 28, 2025
Copy link
Member

@eli-schwartz eli-schwartz left a comment

Choose a reason for hiding this comment

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

This seems very reasonable and makes you wonder why we haven't done it all along.

@bonzini bonzini marked this pull request as ready for review November 28, 2025 19:12
@bonzini bonzini requested a review from jpakkane as a code owner November 28, 2025 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies:cargo Issues related to using cargo subprojects enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants