Workspace path to another workspace, and crate lookup
⚓ Rust 📅 2025-08-31 👤 surdeus 👁️ 10I 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