Skip to content

cargo: allow using a local registry instead of crates.io #14823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from

Conversation

bonzini
Copy link
Collaborator

@bonzini bonzini commented Jul 21, 2025

Distros want to build packages with known versions of crates, and want to store them in the local filesystem.

This is usually achieved by placing a custom Cargo configuration in the build sandbox. For Meson's Cargo interpreter to achieve the same thing, add a -Drust.crates_io_dir option. The interpreter redirects the crates.io registry to the directory through a new internal-only 'dir' wrap type.

TODO: add a similar option to meson subprojects, which requires pretty much rewriting half of the PR :)

@bonzini bonzini added subprojects/wraps dependencies:cargo Issues related to using cargo subprojects labels Jul 21, 2025
@bonzini bonzini closed this Jul 25, 2025
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 subprojects/wraps
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant