Skip to content

Commit 901edef

Browse files
committed
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 <[email protected]>
1 parent 0de6f6c commit 901edef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

zephyr/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ description = """
99
Functionality for Rust-based applications that run on Zephyr.
1010
"""
1111

12+
# 1.85 is needed to support working with or without edition 2024.
13+
rust-version = "1.85"
14+
1215
[dependencies]
1316
zephyr-sys = { version = "0.1.0", path = "../zephyr-sys" }
1417
zephyr-macros = { version = "0.1.0", path = "../zephyr-macros" }

0 commit comments

Comments
 (0)