diff --git a/examples/arduino-diecimila/Cargo.toml b/examples/arduino-diecimila/Cargo.toml index 514e22ea28..f98939ce05 100644 --- a/examples/arduino-diecimila/Cargo.toml +++ b/examples/arduino-diecimila/Cargo.toml @@ -18,3 +18,9 @@ package = "embedded-hal" [dependencies.arduino-hal] path = "../../arduino-hal/" features = ["arduino-diecimila"] + +# 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" diff --git a/examples/arduino-leonardo/Cargo.toml b/examples/arduino-leonardo/Cargo.toml index c205b30a67..832e5d4318 100644 --- a/examples/arduino-leonardo/Cargo.toml +++ b/examples/arduino-leonardo/Cargo.toml @@ -18,3 +18,9 @@ package = "embedded-hal" [dependencies.arduino-hal] path = "../../arduino-hal/" features = ["arduino-leonardo"] + +# 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" diff --git a/examples/arduino-mega1280/Cargo.toml b/examples/arduino-mega1280/Cargo.toml index 73b627a5bc..09f9eebf6e 100644 --- a/examples/arduino-mega1280/Cargo.toml +++ b/examples/arduino-mega1280/Cargo.toml @@ -17,4 +17,10 @@ package = "embedded-hal" [dependencies.arduino-hal] path = "../../arduino-hal/" -features = ["arduino-mega1280"] \ No newline at end of file +features = ["arduino-mega1280"] + +# 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" diff --git a/examples/arduino-mega2560/Cargo.toml b/examples/arduino-mega2560/Cargo.toml index 5d4a1db3b9..4b0d214e75 100644 --- a/examples/arduino-mega2560/Cargo.toml +++ b/examples/arduino-mega2560/Cargo.toml @@ -17,4 +17,10 @@ package = "embedded-hal" [dependencies.arduino-hal] path = "../../arduino-hal/" -features = ["arduino-mega2560"] \ No newline at end of file +features = ["arduino-mega2560"] + +# 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" diff --git a/examples/arduino-nano/Cargo.toml b/examples/arduino-nano/Cargo.toml index 798f763a74..9c9a98a6be 100644 --- a/examples/arduino-nano/Cargo.toml +++ b/examples/arduino-nano/Cargo.toml @@ -21,3 +21,9 @@ features = ["arduino-nano"] [dependencies.avr-device] version = "0.5.1" + +# 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" diff --git a/examples/arduino-uno/Cargo.toml b/examples/arduino-uno/Cargo.toml index c29850017b..85092a492c 100644 --- a/examples/arduino-uno/Cargo.toml +++ b/examples/arduino-uno/Cargo.toml @@ -28,3 +28,9 @@ version = "0.5.4" [dependencies.either] version = "1.6.1" default-features = false + +# 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" diff --git a/examples/atmega2560/Cargo.toml b/examples/atmega2560/Cargo.toml index 70c289cb76..0c60b42a23 100644 --- a/examples/atmega2560/Cargo.toml +++ b/examples/atmega2560/Cargo.toml @@ -19,3 +19,9 @@ package = "embedded-hal" [dependencies.atmega-hal] path = "../../mcu/atmega-hal/" features = ["atmega2560"] + +# 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" diff --git a/examples/nano168/Cargo.toml b/examples/nano168/Cargo.toml index e9732ae748..0caa120d25 100644 --- a/examples/nano168/Cargo.toml +++ b/examples/nano168/Cargo.toml @@ -22,3 +22,9 @@ features = ["nano168"] [dependencies.avr-device] version = "0.5.4" + +# 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" diff --git a/examples/sparkfun-promicro/Cargo.toml b/examples/sparkfun-promicro/Cargo.toml index c36b8f130f..63e9a0814f 100644 --- a/examples/sparkfun-promicro/Cargo.toml +++ b/examples/sparkfun-promicro/Cargo.toml @@ -18,3 +18,9 @@ package = "embedded-hal" [dependencies.arduino-hal] path = "../../arduino-hal/" features = ["sparkfun-promicro"] + +# 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" diff --git a/examples/sparkfun-promini-3v3/Cargo.toml b/examples/sparkfun-promini-3v3/Cargo.toml index 0ca64c6bb3..8468f1bc91 100644 --- a/examples/sparkfun-promini-3v3/Cargo.toml +++ b/examples/sparkfun-promini-3v3/Cargo.toml @@ -18,3 +18,9 @@ package = "embedded-hal" [dependencies.arduino-hal] path = "../../arduino-hal/" features = ["sparkfun-promini-3v3"] + +# 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" diff --git a/examples/sparkfun-promini-5v/Cargo.toml b/examples/sparkfun-promini-5v/Cargo.toml index 57f2b17a2c..a5e9e68d60 100644 --- a/examples/sparkfun-promini-5v/Cargo.toml +++ b/examples/sparkfun-promini-5v/Cargo.toml @@ -18,3 +18,9 @@ package = "embedded-hal" [dependencies.arduino-hal] path = "../../arduino-hal/" features = ["sparkfun-promini-5v"] + +# 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" diff --git a/examples/trinket-pro/Cargo.toml b/examples/trinket-pro/Cargo.toml index 1e96716b34..96378e95cc 100644 --- a/examples/trinket-pro/Cargo.toml +++ b/examples/trinket-pro/Cargo.toml @@ -16,3 +16,9 @@ package = "embedded-hal" [dependencies.arduino-hal] path = "../../arduino-hal/" features = ["trinket-pro"] + +# 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" diff --git a/examples/trinket/Cargo.toml b/examples/trinket/Cargo.toml index c6fc82f83c..b790ba9286 100644 --- a/examples/trinket/Cargo.toml +++ b/examples/trinket/Cargo.toml @@ -16,3 +16,9 @@ package = "embedded-hal" [dependencies.arduino-hal] path = "../../arduino-hal/" features = ["trinket"] + +# 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"