Closed
Description
Cargo.lock includes [root]
section which is no longer used for anything, because it became obsolete when Cargo workspaces were implemented.
About a year ago, support for rootless lockfiles was implemented: 5e644df.
However, by default Cargo still adds an arbitrary root to be compatible with older Cargos. Given that we have a year's worth of new Cargos, I think we can safely switch to rootless lockfiles.
This code should be removed:
cargo/src/cargo/ops/lockfile.rs
Lines 45 to 49 in d7e3b7f
However, we should make sure that Cargo is still able to read a lockfile with a root section (there's a test for this).