One can specify a workspace dependency and refer to it from a member crate with
# in root Cargo.toml
[workspace]
members = ["foo", "bar"]
[workspace.dependencies]
rand = "0.8"
# in foo crate
[dependencies]
rand = { workspace = true }
Is there a way I can refer to a member crate in the dependencies similarly. Currently, I just use path
specifier, but if my directory structure changes it is a headache to fix.
Example
# in foo crate
[dependencies]
rand = { workspace = true }
bar = { workspace = true } # this would be nice!