You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Speedup manifest splicing by removing workspace discovery logic (#3570)
The original implementation required users to specify all manifests
belonging to the workspace, and had a validation pass that walked the
repo to verify the list was in sync. This PR swaps that for a `cargo
metadata` call, which lists the manifests making up the workspace. We
can then call `ctx.watch` on them to invalidate the extension when they
are modified (which was previously impossible if they were not passed to
the extension as labels). This also means users only need to specify the
workspace-root Cargo.toml now :)
There is still an edge-case where a newly-added Cargo.toml won't trigger
invalidation if it's covered by one of the wildcard `members` patterns,
but that was already a pre-existing issue. In practice, we'd expect
invalidation in that case to be triggered by a Cargo.lock change, or to
be unnecessary if the crate does not add new deps to crate resolution.
Fixes#3425Fixes#3515Fixes#3518
Obsoletes #3387
Co-authored-by: Daniel Wagner-Hall <[email protected]>
0 commit comments