Skip to content

Commit 1dcfb5c

Browse files
committed
Bump default host Rust toolchain to 1.89
score_baselibs and lifecycle use library APIs stabilized after the rules_rust default host toolchain (Rust 1.86.0): is_multiple_of (1.87) and NonNull::from_ref / str::from_utf8* inherent constructors / array-length inference (1.89). The new lifecycle rust_supervised_app example pulls the baselibs Rust logging stack into the x86_64 host build, which failed to compile with 1.86.0. Ferrocene (only used for safety-target configs) is not involved in this build. Register Rust 1.89.0 as the default host toolchain.
1 parent b7301c9 commit 1dcfb5c

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

bazel_common/score_rust_toolchains.MODULE.bazel

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,17 @@ use_repo(
4949
ferrocene,
5050
"ferrocene_aarch64_ebclfsa",
5151
)
52+
53+
# Pin the default host Rust toolchain above the rules_rust default (1.86.0).
54+
# score_baselibs / lifecycle use library APIs stabilized after 1.86
55+
# (is_multiple_of -> 1.87; NonNull::from_ref, str::from_utf8* inherent
56+
# constructors, array-length inference -> 1.89), so a newer stable toolchain
57+
# is required for the x86_64 host build.
58+
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
59+
rust.toolchain(
60+
edition = "2021",
61+
versions = ["1.89.0"],
62+
)
63+
use_repo(rust, "rust_toolchains")
64+
65+
register_toolchains("@rust_toolchains//:all")

0 commit comments

Comments
 (0)