From 716ce6aa5bfbbbc6ca9f840c9e724fa2f08b21a2 Mon Sep 17 00:00:00 2001 From: Rahix Date: Sat, 4 May 2024 22:54:02 +0200 Subject: [PATCH] examples: Pin proc-macro2 dependency See for details. --- examples/atmega328p/Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/atmega328p/Cargo.toml b/examples/atmega328p/Cargo.toml index b9a532e..c7f20d1 100644 --- a/examples/atmega328p/Cargo.toml +++ b/examples/atmega328p/Cargo.toml @@ -24,6 +24,12 @@ version = "0.5.3" # path = "../.." features = ["atmega328p", "rt"] +# The latest releases of `proc-macro2` do not support the rust toolchain that +# we use. Thus, we must fix this dependency to an older version where our +# toolchain is still supported. See https://github.com/Rahix/avr-hal/issues/537 +[build-dependencies.proc-macro2] +version = "=1.0.79" + # Configure the build for minimal size - AVRs have very little program memory [profile.dev] panic = "abort"