Skip to content

Commit 22b8138

Browse files
committed
Add rust-toolchain file
This specifies the exact tools that need to be present in order to build these projects. This should affect all of the samples. Currently, we require Rust 1.85 for a few reasons. There have been some subtle changes to warnings that cause build failures with older version. Specifically, the 2024 edition requires certain attributes to explicitly be marked as unsafe, but the construct to mark them as unsafe is only present in the 2024 compiler. There are also some subtle changes to warnings that affect our builds. Signed-off-by: David Brown <[email protected]>
1 parent 349164d commit 22b8138

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

rust-toolchain.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[toolchain]
2+
channel = "1.85"
3+
components = [ "rust-src", "rustfmt", "llvm-tools" ]
4+
targets = [
5+
"thumbv7em-none-eabi",
6+
"thumbv7m-none-eabi",
7+
"thumbv6m-none-eabi",
8+
"thumbv7em-none-eabihf",
9+
"thumbv8m.main-none-eabihf",
10+
"riscv32i-unknown-none-elf",
11+
"riscv64imac-unknown-none-elf",
12+
]

0 commit comments

Comments
 (0)