Otherwise, cargo prints a warning when using cbindgen as a build-dependency in my workspace:
warning: skipping duplicate package `single_crate` found at `/Users/gferon/.cargo/git/checkouts/cbindgen-4f7d248bb26fc43d/10f32b0/tests/depfile/single_crate`
warning: skipping duplicate package `single_crate` found at `/Users/gferon/.cargo/git/checkouts/cbindgen-4f7d248bb26fc43d/10f32b0/tests/depfile/single_crate_default_config`
I added them to workspace.exclude and this seems to do the trick as well. You can still compile those crates when going in their respective directories (this means CI or dev workflows might need adjustment).
Otherwise,
cargo
prints a warning when usingcbindgen
as abuild-dependency
in my workspace: