Upgrade to Rust 1.90 for our Cargo tests and release process
This release stabilizes the workspace publishing feature, so we can now get
that without having to resort to a nightly release.
PiperOrigin-RevId: 811368336
diff --git a/.github/workflows/test_rust.yml b/.github/workflows/test_rust.yml
index 504b15b..37638f0 100644
--- a/.github/workflows/test_rust.yml
+++ b/.github/workflows/test_rust.yml
@@ -30,10 +30,9 @@
# Override cases with custom images
- config: { name: Cargo }
- # We currently need to be on nightly to have access to the
- # multi-package publishing feature. This will be stabilized in
- # 1.90, so we should switch to that as soon as it is released.
- image: "us-docker.pkg.dev/protobuf-build/containers/release/linux/rust:8.0.1-nightly-2025-08-07-f0d1e209ed9369f69d93ce418990ecff3aa08d6f"
+ # We need Rust 1.90 so that we can use the new workspace publishing
+ # feature.
+ image: "us-docker.pkg.dev/protobuf-build/containers/release/linux/rust:8.0.1-1.90.0-e1c2fe666ffa9b941b126541a26340d0ea787cea"
bazel_cmd: "run"
targets: "//rust/release_crates:cargo_test"
@@ -70,7 +69,9 @@
ref: ${{ inputs.safe-checkout }}
- name: Install Rust
shell: bash
- run: rustup default nightly-2025-08-07
+ # We need Rust 1.90 so that we can use the new workspace publishing
+ # feature.
+ run: rustup default 1.90
- name: Run tests
uses: protocolbuffers/protobuf-ci/bazel@v4
with:
diff --git a/rust/release_crates/cargo_test.sh b/rust/release_crates/cargo_test.sh
index 947dca2..3aa6448 100755
--- a/rust/release_crates/cargo_test.sh
+++ b/rust/release_crates/cargo_test.sh
@@ -55,4 +55,4 @@
cd $WORKSPACE_ROOT
CARGO_HOME=$CARGO_HOME cargo test
-CARGO_HOME=$CARGO_HOME cargo publish --dry-run --workspace -Z package-workspace
+CARGO_HOME=$CARGO_HOME cargo publish --dry-run --workspace