Open pbrkr opened 4 years ago
I can confirm this behavior is still present on cargo-bitbake 0.3.15 and is interfering with our workflow. It does seem to match with the way meta-rust pulls in sources during bitbake compilation. Because manually removing the unneeded dependencies from the recipe causes the bitbake build to fail.
I have a workspace with two simple projects in it: a
hello
project with no dependencies and aprint-rand
project that depends on therand
crate. This workspace can be seen here: https://gitlab.com/pbarker.dev/learn-rust/-/tree/711141cb58ccb241b1c6b13454746bd28b106de7If I run
cargo bitbake
in the directory of thehello
project, the dependencies of theprint-rand
project are also included inSRC_URI
.I suspect that the dependencies are being resolved at the workspace level instead of at the project level but I'm not familiar enough with the cargo API to be sure on this or to suggest how to fix it.