-
Hello! I've been trying to build a small hello world type project which uses the When I specify the dependency like this
Which leads me to think that this sub-crate is not being copied into the vendor directory as I might expect. This is where the error points to. If I specify the dependency with a version like
Which I am also not sure how to handle either. Though am primarily interested in getting the git-based dependency working. I am new to using crane, so unsure how to proceed from here. Any guidance would be much appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @kalebpace thanks for the report! Is your |
Beta Was this translation helpful? Give feedback.
Oh I see, the build script is effectively trying to run
cargo metadata
and find the path to its relative member! Yes unfortunately this won't fly because cargo expects each crate to be vendored differently than the way that "raw" git-dependencies happen to work...Please take a look at the following FAQ which should explain the situation further and suggest some workarounds: https://github.com/ipetkov/crane/blob/d995bc5e2d5853a72367d6e10df0b756f38a3aff/docs/faq/git-dep-cannot-find-relative-path.md
(We've had questions about this situation come up before and somehow I hadn't actually documented it until now; better late than never, hope it helps!)