If the root Cargo.toml does not correspond to a package (i.e., it is a virtual root), it seems that this file won't be counted into the computation of the cache key.
|
const workspaceMembers = await workspace.getWorkspaceMembers(); |
|
|
|
const cargo_manifests = sort_and_uniq(workspaceMembers.map((member) => path.join(member.path, "Cargo.toml"))); |
Hence changing [profile.dev] in the root Cargo.toml seems to give a full match which is problematic.
If the root Cargo.toml does not correspond to a package (i.e., it is a virtual root), it seems that this file won't be counted into the computation of the cache key.
rust-cache/src/config.ts
Lines 155 to 157 in a1f9490
Hence changing
[profile.dev]in the root Cargo.toml seems to give a full match which is problematic.