Skip to content

Commit 716ce6a

Browse files
committed
examples: Pin proc-macro2 dependency
See <Rahix/avr-hal#537> for details.
1 parent 02ec168 commit 716ce6a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/atmega328p/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ version = "0.5.3"
2424
# path = "../.."
2525
features = ["atmega328p", "rt"]
2626

27+
# The latest releases of `proc-macro2` do not support the rust toolchain that
28+
# we use. Thus, we must fix this dependency to an older version where our
29+
# toolchain is still supported. See https://github.com/Rahix/avr-hal/issues/537
30+
[build-dependencies.proc-macro2]
31+
version = "=1.0.79"
32+
2733
# Configure the build for minimal size - AVRs have very little program memory
2834
[profile.dev]
2935
panic = "abort"

0 commit comments

Comments
 (0)