- Update all
Cargo.toml
to have the new version. - Update README, CHANGELOG (run
date --iso-8601
to get ISO-8601 date format). - Run
cargo build
and reviewCargo.lock
changes if all looks well, make a commit. - Package up your crate into a format that can be uploaded to https://crates.io
cargo package
Check if files in package are correct by cargo package --list
.
- Now upload the package
cargo publish
- Create tag and publish to remote
VER_NUM=v0.x.x
git tag -as ${VER_NUM} -m ${VER_NUM}
git push origin master
git push origin ${VER_NUM}