Skip to content

Use Rust 1.79 for Bazel and nightly for Cargo #23060

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Aug 8, 2025

Use Rust 1.79 for Bazel and nightly for Cargo

We need to use a recent nightly release to be able to use the --workspace
flag to cargo publish. Our minimum supported Rust version is 1.79,
so I think we should test that version with Bazel to make sure we stay
compatible. Our Bazel build is currently using 1.86 since that is the default
from rules_rust, but this change explicitly selects 1.79.

I also tried having Bazel use a more recent version, but unfortunately
rules_rust is broken for 1.87 and up, due to name mangling changes in rustc:
bazelbuild/rules_rust#3459

As soon as Rust 1.90 is released, we can start using that with Cargo instead of
nightly.

@copybara-service copybara-service bot force-pushed the test_792701669 branch 3 times, most recently from 3ced272 to abecbd9 Compare August 8, 2025 19:40
We need to use a recent nightly release to be able to use the `--workspace`
flag to `cargo publish`. Our minimum supported Rust version is 1.79,
so I think we should test that version with Bazel to make sure we stay
compatible. Our Bazel build is currently using 1.86 since that is the default
from rules_rust, but this change explicitly selects 1.79.

I also tried having Bazel use a more recent version, but unfortunately
rules_rust is broken for 1.87 and up, due to name mangling changes in rustc:
bazelbuild/rules_rust#3459

As soon as Rust 1.90 is released, we can start using that with Cargo instead of
nightly.

PiperOrigin-RevId: 792701669
@copybara-service copybara-service bot changed the title Use Rust 1.79 for Bazel and 1.89 for Cargo Use Rust 1.79 for Bazel and nightly for Cargo Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant