Suppose I have crates/foo and crates/bar in a monorepo. Whenever I bump the version of crates/foo, the content of Cargo.lock at the repo root also changes. That inevitably triggers rebuild of crates/bar and all of its deps, even if crates/bar does not depends on crates/foo and none of its files (except for the shared Cargo.lock) change.
Is there any way to avoid this?
Suppose I have
crates/fooandcrates/barin a monorepo. Whenever I bump the version ofcrates/foo, the content ofCargo.lockat the repo root also changes. That inevitably triggers rebuild ofcrates/barand all of its deps, even ifcrates/bardoes not depends oncrates/fooand none of its files (except for the sharedCargo.lock) change.Is there any way to avoid this?