1.3 KiB
1.3 KiB
This document explains how to perform the project's maintenance tasks.
Repository Configuration
Some repository settings, including branch protection and required approvals, are managed in the Rust team repo. See the repository schema for supported directives.
Creating a new release
Artifacts
- a tag of the version number
- a new crate version
Process
To generate all the artifacts above, one proceeds as follows:
git checkout -b release-<next-version>- create a branch to make changes to the repository. Changes cannot be made tomainas it is protected.- Edit
Cargo.tomlto update the package version to<next-version>. - Create a new PR for the branch (e.g. using
gh pr create) and get it approved and merged. - Pull the
mainbranch and ensure that you are at the merged commit. cargo publishto create a new release oncrates.io.git tag <next-version>to remember the commit.git push --tagsto push the new tag.- Go to the newly created release page on GitHub and edit it by pressing the "Generate Release Notes" and the
@button. Save the release.