From 5f944f8b6e08033ea53f49bc05ab355c1ba2923e Mon Sep 17 00:00:00 2001 From: Augie Fackler Date: Fri, 3 Apr 2026 07:26:48 -0700 Subject: [PATCH] crubit: bump Rust edition to 2024 for generated Rust sources This was set to 2018 in 2021 without much comment presumably as a way to hedge against edition changes breaking things. I'm not sure if we should hard-code it here, or just let it "float" to the global default edition, so for now I'm just bumping it to 2024 and kicking the can at least a year down the road. PiperOrigin-RevId: 894062743 --- rs_bindings_from_cc/bazel_support/compile_rust.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rs_bindings_from_cc/bazel_support/compile_rust.bzl b/rs_bindings_from_cc/bazel_support/compile_rust.bzl index d3efc8b20..d87daf89a 100644 --- a/rs_bindings_from_cc/bazel_support/compile_rust.bzl +++ b/rs_bindings_from_cc/bazel_support/compile_rust.bzl @@ -108,7 +108,7 @@ def compile_rust(ctx, attr, src, extra_srcs, deps, crate_name, include_coverage, aliases = aliases, output = lib, metadata = rmeta, - edition = "2018", + edition = "2024", is_test = False, rustc_env = {}, compile_data = depset([]),