Open AlJohri opened 3 months ago
While it doesn't solve this problem by rewriting existing lines, I have a PR open which allows you to pass --prefer-simple-dotted
to the tool, which will use the dependency.workspace = true
format when rewriting dependencies. (https://github.com/mainmatter/cargo-autoinherit/pull/29)
I'm not sure if the maintiners are interested in merging it, but I used this on some of my own workspaces with success.
I have a bunch of crates that are already using the
TK.workspace = true
format in Cargo.toml. It would be great that as part of the process for runningcargo-autoinherit autoinherit
, it converts the existing inherited packages into the same format ofcrate = { workspace = true }
.Currently my Cargo.toml has a mix of formats after running the tool: