From 77d24a668ff0c5a45681874b91079585104334e2 Mon Sep 17 00:00:00 2001 From: David Brown Date: Wed, 23 Apr 2025 10:34:22 -0600 Subject: [PATCH] zephyr: Specify minimum rust version To allow the 2024 edition of Rust to be used, one of our macros needs a new syntax, introduced in Rust 1.85 to declare that it is known that the macro expansion is unsafe. This could work without the minimum rust version, as long as the macro isn't used, but is needed for tests, and Rust stable has already moved to 1.86, so it isn't an onerous requirement. Signed-off-by: David Brown --- zephyr/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zephyr/Cargo.toml b/zephyr/Cargo.toml index b5551db1..0cebba83 100644 --- a/zephyr/Cargo.toml +++ b/zephyr/Cargo.toml @@ -9,6 +9,9 @@ description = """ Functionality for Rust-based applications that run on Zephyr. """ +# 1.85 is needed to support working with or without edition 2024. +rust-version = "1.85" + [dependencies] zephyr-sys = { version = "0.1.0", path = "../zephyr-sys" } zephyr-macros = { version = "0.1.0", path = "../zephyr-macros" }