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:
P-critical
issues.toolchains
repository. Example options you would run the GitHub action with are:
rust-version
field in our Workspace Cargo.toml
and in the Bazel WORKSPACE
.
bin/bazel integrity toolchains <stable version> <nightly version>
to generate the hashes for the rust_toolchains
rule in our WORKSPACE
file.NIGHTLY_RUST_DATE
value in the ci-builder
script.
rustup upgrade stable
to pull the latest version of the Rust toolchain, or
whatever version you're upgrading to.cargo clippy --workspace --tests
, fix any new clippy lints
that were introduced.
cargo fix
, that should go a long way in automatically fixing many of the lints.UNICODE_VERSION
const.main
.#eng-general
to give everyone a heads up and let
them know they can upgrade by running rustup upgrade stable
.