Requires Bash
, sfreleaser and sd:
# *Important* Do not forget to replace `0.1.3` below by your real version!
export version=0.5.7
sd '^version = ".*?"$' "version = \"${version}\"" Cargo.toml
sd 'version = ".*?",' "version = \"${version}\"," Cargo.toml
sd '## (Next|Unreleased)' "## ${version}" CHANGELOG.md
# Important so that Cargo.lock is updated and you "test
cargo test --target aarch64-apple-darwin # Change 'aarch64-apple-darwin' to fit your own platform!
git add -A . && git commit -m "Preparing release of ${version}"
sfreleaser release "v${version}"