Release Checklist
One-time crates.io setup
- Follow the steps in https://doc.rust-lang.org/cargo/reference/publishing.html#before-your-first-publish (you can create a token scoped to
publish-update
). - To get permissions to publish you’ll need to be in the owners group. If you aren’t in there, ask someone in that group to add you
Communication
- Post in #frost slack channel and tag the Frost team that you’re going to be doing a release to freeze PR approvals until it’s done. E.g “@frost-core I’m doing a release of <version> of Frost. Please do not merge any more PRs until I’m finished. Thanks.”
Checks
-
Check current version for each crate. This is in the Cargo.toml file for frost-core, frost-ed448 etc.
-
Decide which version to tag the release with (e.g. v0.3.0). Currently we always use the same release number for all crates, but it's possible for them to get out of sync in the future.
-
Create new issue. E.g. Release v0.4.0
Make changes
-
Bump the version of each crate in their Cargo.toml files
-
Bump the version used in the tutorial (importing.md)
-
Check if the changelog is up to date and update if required (we’re only keeping the one in frost-core for now). Double check using FROST releases which will have a list of all the PRs that have been closed since the last release. Things to include in the changelog will be anything that impacts production code and big documentation changes. I.e. script and test changes should not be included. NOTE: Please add to the changelog whenever you make changes to the library as this will make things simpler for the person in charge of the release.
- Move version in changelog to Released
- Create a new version in “unreleased” in changelog
-
Update the version number for frost-core and frost-rerandomized in the Ciphersuite crates, e.g. in
frost-core = { path = "../frost-core", version = "0.4.0", features = ["test-impl"] }
. You'll need to do this for dependencies and dev-dependencies -
Create a PR with subject
Release \<version number>
containing all these changes -
You’ll need someone to review and approve it
-
Wait for it to pass CI checks
Publish
-
Checkout main branch, in the commit of the previously merged PR (in case other stuff got merged after that)
-
Run
cargo publish -p frost-core --dry-run
to check if it’s ready to publish. Fix issues if any. -
Draft and publish a new release for frost-core.
- In “Choose a tag” type
<crate>/<version>
e.g. “frost-core/v0.2.0” and click “Create new tag” - In “Target” select “main” as long as other PRs haven’t been merged after the version bump PR. Otherwise, select the commit matching the PR that was merged above.
- In “Release title” use
<crate> <version>
e.g. “frost-core v0.2.0” - Paste the (raw Markdown) changelog for this version into the description box.
- Leave “Set as pre-release” unchecked (we should have checked it in earlier versions but the ship has sailed. It doesn’t matter much)
- Check “Set as the latest release”
- In “Choose a tag” type
-
Publish it with
cargo publish -p frost-core
-
Check if frost-rerandomized is ready to be published:
cargo publish -p frost-rerandomized --dry-run
. Fix any errors if needed. -
Draft and publish a frost-rerandomized release
- Use the same process as described for frost-core above, but you can leave the changelog empty and uncheck “Set as the latest release”
-
Publish it with
cargo publish -p frost-rerandomized
-
Check if other crates are ready to be published:
for cs in ristretto255 ed25519 secp256k1 secp256k1-tr p256 ed448; do cargo publish -p frost-$cs --dry-run; done
. Fix any issues if needed.-
If you get an error like this:
“error: failed to verify package tarball Caused by: failed to select a version for the requirement
frost-core = "^0.3.0"
candidate versions found which didn't match: 0.2.0, 0.1.0 location searched: crates.io index required by packagefrost-ed25519 v0.3.0 (frost/target/package/frost-ed25519-0.3.0)
”This is because the ciphersuite crates aren’t pointing at the new frost-core package. This is because you need to publish frost-core before you can publish the others otherwise they will not have the expected version to point to.
-
-
Draft and publish releases for each of those crates (sorry, that will be boring)
- Use the same process as described for frost-core above (actions 1 - 3), but you can leave the changelog empty and uncheck “Set as the latest release”
-
Publish those crates:
for cs in ristretto255 ed25519 secp256k1 secp256k1-tr p256 ed448; do cargo publish -p frost-$cs; done
Confirm
-
Check versions in the crates to confirm everything worked:
-
Let the team know in the #frost slack channel that the release is complete and successful
In the case of an unsuccessful release
If something was wrongly tagged, you can just retag it. If something was wrongly pushed to crates.io, you will need to make a new fixed release and yank the wrong release.