When any crate in a workspace depends on this repository via a git
reference...
[dependencies]
windows-kernel-sys = { git = "https://github.com/StephanvanSchaik/windows-kernel-rs" }
...every invocation of cargo
within that same workspace prints these warnings:
warning: skipping duplicate package `driver` found at `/home/my-username/.cargo/git/checkouts/windows-kernel-rs-bc6ca3e049eb46e4/f27c008/02-hello-world`
warning: skipping duplicate package `driver` found at `/home/my-username/.cargo/git/checkouts/windows-kernel-rs-bc6ca3e049eb46e4/f27c008/05-creating-devices`
warning: skipping duplicate package `driver` found at `/home/my-username/.cargo/git/checkouts/windows-kernel-rs-bc6ca3e049eb46e4/f27c008/07-io-controls`
warning: skipping duplicate package `driver` found at `/home/my-username/.cargo/git/checkouts/windows-kernel-rs-bc6ca3e049eb46e4/f27c008/04-safe-framework`
warning: skipping duplicate package `example` found at `/home/my-username/.cargo/git/checkouts/windows-kernel-rs-bc6ca3e049eb46e4/f27c008/user/06-reading-and-writing`
warning: skipping duplicate package `driver` found at `/home/my-username/.cargo/git/checkouts/windows-kernel-rs-bc6ca3e049eb46e4/f27c008/06-reading-and-writing`
This is because git
dependencies scan the entire repository, so that crates can be referred to by name rather than by path.