Skip to content

[Rust CI] Avoid multiple imports of the same dependency #525

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

Open
drewrelmas opened this issue Jun 2, 2025 · 0 comments
Open

[Rust CI] Avoid multiple imports of the same dependency #525

drewrelmas opened this issue Jun 2, 2025 · 0 comments

Comments

@drewrelmas
Copy link
Contributor

We should detect when a crate is imported multiple times in different crates within the same workspace. In such cases, the best practice is to move the dependency declaration to the main Cargo.toml so that there is only one version.

There might already be some cargo commands that handle this, otherwise, another option would be to extend what we have in our xtask check/structure.

Upon cursory search, cargo-autoinherit might help.

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

No branches or pull requests

1 participant