Skip to content

ProgramSalamander/cargo-renamepkg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cargo-renamepkg

This is a simple utility to help you rename a cargo package when you may create a package with an unexpected name or just want to change its name. If inside a cargo workspace the package name is also automatically updated in the members array. (Since v1.2)

Use Case

Suppose that you wanted to do this:

cargo new my_project

But actually you did this:

cargo new my_projcet

When facing such an embarrassing situation, just use this utility:

cargo renamepkg my_projcet my_project

And cargo renamepkg does two things for you:

  • renames the directory
  • replaces the package name with new one in Cargo.toml

Usage

cargo renamepkg <TARGET_PATH> <NEW_NAME>

Installation

cargo install cargo-renamepkg

Contribution

Any questions/advices/contributions are welcomed!

About

A simple tool to help you rename a package.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages