Skip to content

Commit fd86566

Browse files
committed
[rust] Lock rust version to specific nightly
We require a nightly build, but this makes CI fragile to breakage in the nightly release. Lock this to the latest known working version. This will have to be periodically revisited or as new features might be needed. Change-Id: I9d00fbe74d724402f7b3909d4fecba2d27d81d59
1 parent 16ec1ed commit fd86566

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

lib/rust_support/rules.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ MODULE_SRCDIR := $(MODULE)
2121
MODULE_BUILDDIR := $(call TOBUILDDIR,$(MODULE_SRCDIR))
2222

2323
MODULE_SRCS := \
24+
$(MODULE_SRCDIR)/rust-toolchain.toml \
2425
$(MODULE_SRCDIR)/Cargo.toml \
2526
$(MODULE_SRCDIR)/src/lib.rs
2627
MODULE_OBJS := $(foreach d,$(MODULE_SRCS),$(call TOBUILDDIR,$(d)))
@@ -62,7 +63,7 @@ $(MODULE_OBJECT): MODULE_BUILDDIR:=$(MODULE_BUILDDIR)
6263
# Override with module local values for the build rule.
6364
$(MODULE_OBJECT): $(MODULE_OBJECT).phony $(MODULE_OBJS) $(CARGO_CONFIG)
6465
cd $(MODULE_BUILDDIR); \
65-
cargo +nightly build
66+
cargo build
6667

6768
EXTRA_OBJS := $(EXTRA_OBJS) $(MODULE_OBJECT)
6869

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[toolchain]
2+
channel = "nightly-2025-12-04"
3+
components = ["rust-src"]

0 commit comments

Comments
 (0)