fix: rename dependency cause error#426
Conversation
|
@ridesun thanks for the idea. We have already implemented our own solution #427. This solution require manual actions, but it covers more possible cases like if one decides to re-export the |
| thiserror-no-std = "2.0" | ||
| tokio = "1.39" | ||
| trybuild = "1" | ||
| cargo_metadata = "0.18" |
There was a problem hiding this comment.
Please see the comment saying it has to be in alphabetical order. We also prefer crates to be named in kebab-case instead of snake one
| proc-macro2.workspace = true | ||
| quote.workspace = true | ||
| syn = { workspace = true, features = ["full", "extra-traits"] } | ||
| cargo_metadata.workspace = true |
There was a problem hiding this comment.
All dependencies are in alphabetical order
|
Thank you very much for your response. The solution you proposed is very ingenious and covers more possible cases. I will try to continue refining this solution in a new branch according to your requirements. The cargo_metadata crate may have more applications in this project. |
Resolves #401 .
I've made some attempts and found that to get the aliases of imported dependencies in Cargo.toml, we need to use the cargo_metadata crate to obtain the alias information of dependencies from the project metadata of Cargo. Can we import this new crate?
for example:
@reviewer-or-team