Skip to content

Multiple incompatible versions of bitflags and windows-targets #984

@git-staus

Description

@git-staus

While experimenting with cargo clippy I noticed that multiple versions of some dependencies are in use:

warning: multiple versions for dependency `bitflags`: 1.3.2, 2.9.1
warning: multiple versions for dependency `windows-targets`: 0.42.2, 0.52.6
warning: multiple versions for dependency `windows_aarch64_gnullvm`: 0.42.2, 0.52.6
warning: multiple versions for dependency `windows_aarch64_msvc`: 0.42.2, 0.52.6
warning: multiple versions for dependency `windows_i686_gnu`: 0.42.2, 0.52.6
warning: multiple versions for dependency `windows_i686_msvc`: 0.42.2, 0.52.6
warning: multiple versions for dependency `windows_x86_64_gnu`: 0.42.2, 0.52.6
warning: multiple versions for dependency `windows_x86_64_gnullvm`: 0.42.2, 0.52.6
warning: multiple versions for dependency `windows_x86_64_msvc`: 0.42.2, 0.52.6

The lint documentation claims this bloats the executable or cause other trouble.

Reporting a violated lint while the project is short on maintainers might be a bit silly, but I cannot find any mention of this elsewhere so I thought I might at least report it.

Steps to reproduce

git clone https://github.com/RustAudio/cpal
cd cpal/
cargo clippy -- -Aclippy::all -Wclippy::multiple_crate_versions |& grep multiple\ versions

Fix?

Perhaps this is a trivial typo somewhere but I cannot make much sense of Cargo.toml.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency filewontfix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions