Can I rename a crate after it's been published?



I’ve recently updated the nvml-sys FFI crate to wrap version 1.3.1 of NVML, a C toolkit for working with persistent memory (also known as pmem). However, the authors of NVML have renamed it PMDK. It’d be useful for folks looking for a wrapper in the future if it matched the underlying open source project.

Is it possible to rename a crate when publishing a new version? If not (and I suspect it isn’t, otherwise the docs would make it clear), would this make sense?


No. You need to publish a new crate.


BTW, you can make the old crate depend on the new and pub use pmdk::*; to re-export everything. This will avoid having redundant copies and incompatibilities between the two crates.