Closed Ediacarium closed 7 years ago
We need a virtual Cargo.toml in the repository root:
[workspace]
members = ["foo", "bar"]
In each member we need
[project]
workspace = ".."
i.e. the relative path to the virtual Cargo.toml.
Then we are able to use cargo build -p <member>
, cargo build --all
and cargo run -p <member>
.
@oberien has already looked into this. This is especially relevant after #106 adds a second binary which we should be able to build with one call to cargo to simplify the makefile as @main-- already noted.