Skip to content

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

Open
@drewrelmas

Description

@drewrelmas

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    housekeepingRepository maintenance or other chorespipelineRust Pipeline Related TasksrustPull requests that update Rust code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions