I have workspace and two particular crates in it: lib1
and lib2
.
And lib2
depend on lib1
. The problem is that when I run
cargo build -p lib2
and then cargo build -p lib1
the rebuild happens.
I mean lib1
build during build of lib2
and then it rebuilds again after cargo build -p lib1
.
My only idea is features, I mean the one of dependency of lib1
should have feature set1
,
when I run cargo build -p lib1
and feature set2
when build lib2
, and feature set1
!= feature set2
.
But which one?
I try cargo +beta tree -e features -p
for lib1
and lib2
,
but I can not automate comparing of features set,
and manual checking is showing that they are the same.
May be I missing something, and for example cargo +beta tree -e features
not work as expecting,
and doesn't show set of feature for particular crate, instead it shows feature set for whole tree?