Skip to content

Commit d5aae2a

Browse files
committed
toolchain: update to latest nightly
Nightly builds compile with the current version release (2023-05-15). Adding `codegen-units = 1` fixes compilation errors for debug builds. See: rust-lang/compiler-builtins#523 (comment)
1 parent 6465763 commit d5aae2a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Cargo.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ edition = "2021"
77
avr-device = { version = "0.5", features = ["atmega32u4"] }
88
usb-device = "0.2"
99

10-
[dev-dependencies]
11-
usbd-hid = "0.6"
10+
[dev-dependencies.usbd-hid]
11+
version = "0.6"
12+
git = "https://github.com/twitchyliquid64/usbd-hid"
1213

1314
[dev-dependencies.arduino-hal]
1415
git = "https://github.com/Rahix/avr-hal.git"
@@ -18,7 +19,11 @@ features = ["arduino-leonardo"]
1819
[profile.dev]
1920
opt-level = "s"
2021
lto = true
22+
# Required by current nightly for debug builds
23+
# See upstream issue: https://github.com/rust-lang/compiler-builtins/issues/523#issuecomment-1547339559
24+
codegen-units = 1
2125

2226
[profile.release]
2327
opt-level = "s"
28+
codegen-units = 1
2429
lto = true

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[toolchain]
2-
channel = "nightly-2023-03-24"
2+
channel = "nightly-2023-05-15"

0 commit comments

Comments
 (0)