Closed Veetaha closed 1 year ago
Yep, it's a bug in the cargo_toml library, unfortunately, as proves this test case adapted from yours: https://github.com/bnjbvr/cargo-toml-workspace-inheritance-bug-repro
running cargo run
from the top-level directory will show the same error. I'll open an issue on cargo_toml's issue tracker.
Thanks for reporting!
CLI version is 0.4.0. Suprisingly, there is no --version command in the CLI.
Feel free to implement this! I've pushed as far as I could adding a library to parse arguments, maybe the time has come :)
Looks like the 0.5.0 version fixes this. Confirmed by testing in my repo. Thanks!
When running
cargo-machete
with workspace inheritance the CLI outputs errors. This happens when thepackage.edition
key is used in the workspace-level manifest and inherited in the package-level manifest. Inheriting other keys doesn't seem to breakcargo machete
.Reproduction
You may use the reproduction git repository:
You'll see that both
cargo machete
invocations failOr you can create the cargo workspace manually the following way.
Workspace-level
Cargo.toml
manifest:Package-level
Cargo.toml
manifest:Meta
CLI version is
0.4.0
. Suprisingly, there is no--version
command in the CLI.