Materialize builds with the stable release of Rust, which gets updated every 6 weeks. We try to pretty aggressively track the latest version to get the newest features and make upgrades as easy as possible.
Anyone is welcome to upgrade the version of Rust! Below is the list of things you need to do:
- Bump the
rust-versionfield in our WorkspaceCargo.tomland in the BazelWORKSPACE. - Bump the
NIGHTLY_RUST_DATEvalue in theci-builderscript.- Note: CI has a nightly version of Rust so we can run Miri.
- Locally run
rustup upgrade stableto pull the latest version of the Rust toolchain, or whatever version you're upgrading to. - From the root of the repository run
cargo clippy --workspace --tests, fix any new clippy lints that were introduced. - Check if Rust's unicode version has changed. If it has make sure to include in the release notes
what version it previously was, and what version it got bumped to.
- The Releases page for the Rust repository
should mention if it's been changed. But the only way to know for sure it to
git blame the
UNICODE_VERSIONconst.
- The Releases page for the Rust repository
should mention if it's been changed. But the only way to know for sure it to
git blame the
- When the upgrade PR finally merges, post in
#eng-generalto give everyone a heads up and let them know they can upgrade by runningrustup upgrade stable.