#1145·makepad

Duplicate vendored bitflags v2.10.0 (libs/bitflags and libs/vulkan/bitflags) triggers Cargo 'skipping duplicate package' warnings downstream

Author: cspecterCreated Jul 26, 2026Updated Jul 26, 2026

Hi — first, thank you for Makepad.

While pinning makepad-widgets as a git dependency (rev = "82abd655b9dd5c88c9b0543c67d42b608ecf13fc"), every downstream build emits:

warning: skipping duplicate package `bitflags v2.10.0 (https://github.com/makepad/makepad?rev=82abd655...#82abd655)`:
  .../libs/vulkan/bitflags/Cargo.toml
in favor of .../libs/bitflags/Cargo.toml

Root cause: the repository vendors crates.io bitflags v2.10.0 twice, at libs/bitflags and libs/vulkan/bitflags. Both are workspace members, but Cargo enumerates every manifest in a git dependency's repository (not only workspace members), so any consumer that pins Makepad as a git dependency gets this inventory warning on every build.

As far as I can tell, nothing actually references the Vulkan copy: every in-repo consumer path-depends on libs/bitflags (platform, platform/studio, rapier3d, parry3d), and the root [patch.crates-io] also points bitflags at libs/bitflags.

Suggested fix: drop the libs/vulkan/bitflags workspace member and delete that duplicate directory (or otherwise deduplicate to a single vendored copy). Note that removing only the workspace member line is not sufficient — the manifest itself must not be present, because of the git-source enumeration behavior above.

We've worked around this downstream by pinning a fork with exactly that dedup applied on top of 82abd655, so this is not urgent for us; filing so the duplication can be cleaned up upstream and the fork delta can retire.