I has workspace:
foo-sys (lib crate, wrapper around C++ library),
foo (lib crate wrapper for
demo (bin crate to demonstrate work of
The problem that C++ library consists from two static libraries, with one
common common object file -
boo.o, C++ linker handle this without problems,
but cargo/rustc works with that in very strange manner.
cd crate && cargo build cd crate && cargo test
works for all three:
cargo test in the root of workspace gives error about duplication symbols from
What is goging on, any idea?
cargo test -vv and
cd demo && cargo test -vv,
and only difference between linking of
good: --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link
bad: --json=diagnostic-rendered-ansi --emit=dep-info,link -C debuginfo=2 --test
So I completly at lost I though that
cargo test for workspace is just run
cargo test for all crates in workspace, but looks like it is not?