Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Workspace path to another workspace, and crate lookup
I just tried, and failed, to do something that I thought I had done before.
I have a workspace A
and a workspace B
(two different projects). There are crates in B
that reference crates in A
. I have some vague memory of being able to do this (in B/Cargo.toml
):
# workspace dependencies
[dependencies]
crate-in-a = { path = "../A", version = "0.1.0" }
I.e. it points to the workspace root in path
rather than point to the specific crate. I somehow expected it to be able to automatically find the crate-in-a
in A
automatically.
I’m pretty sure I’ve seen this behavior. Am I going crazy? Is/was this thing? Or is it possible in some specific context only? (via git?).
2 posts - 2 participants
🏷️ Rust_feed