Can I change crate name on crates.io?

Hi folks,

when I published one of my crates, I set name with underscore (I thought it will be name of crate, but actually it is only name in list on crates.io).

Could somebody explain, if I change name property in Cargo.toml, will it affect current crate or I cannot change the name on crates.io ?

1 Like

You can't. If you change the package's name and run cargo publish, it will publish a new package to crates.io with the new name. The package with the old name will still exist though. You could release a new version with the old name telling people that you abandoned this package in favour of your new one.

3 Likes

Got it, thank you.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.