This is a simple utility to help you rename a cargo package when you may create packages with unexpected names or just want to change its name.
Suppose that you wanted to do this:
shell
cargo new my_project
But actually you did this:
shell
cargo new my_projcet
When facing such an embarrassing situation, just use this utility:
shell
cargo renamepkg my_project my_projcet
And cargo renamepkg
does two things for you:
- renames the directory
- replaces the package name with new one in Cargo.toml
shell
cargo install cargo-renamepkg
Any questions/advices/contributions are welcomed!