cargo-dependency-inheritor
cargo-dependency-inheritor copied to clipboard
Utility to inherit dependencies from workspace file if it occurs 'n' or more times throughout the project.
before: ``` dep = { git = "https://github.com/org/repo", rev = "longhexstring" } ``` after: ``` dep = "*" ``` Needless to say, this doesn't work :)
I have some dependencies which use a different `registry`. e.g. ```toml foobar = { version = "=0.20.1", registry = "my-private-registry" } ``` Running cargo-dependency-inheritor causes them to be deleted.
I think `dev-dependencies` are ignored in the released version on crates.io , but installing from git fixes that.
We had the usecase that we wanted to replace all path deps to be in workspace root.
Currently dependencies with a `path` attribute are also specifying a version when auto generated, i.e. `version = "*"`. It's better to omit this, the only restriction it adds is that...
Rust on Windows can correctly use `/` but Rust on Linux cannot correctly use `\`, so this tool should never output `\` into a path attribute for a dependency.