Skip to content

Commit

Permalink
examples: Pin proc-macro2 in all examples
Browse files Browse the repository at this point in the history
The latest releases of `proc-macro2` do not support the rust toolchain
that we use [1].  Thus, we must fix this dependency to an older version
where our toolchain is still supported.

[1]: #537
  • Loading branch information
Rahix committed May 4, 2024
1 parent 75820c5 commit 533ff75
Show file tree
Hide file tree
Showing 13 changed files with 80 additions and 2 deletions.
6 changes: 6 additions & 0 deletions examples/arduino-diecimila/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 6 additions & 0 deletions examples/arduino-leonardo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
8 changes: 7 additions & 1 deletion examples/arduino-mega1280/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,10 @@ package = "embedded-hal"

[dependencies.arduino-hal]
path = "../../arduino-hal/"
features = ["arduino-mega1280"]
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"
8 changes: 7 additions & 1 deletion examples/arduino-mega2560/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,10 @@ package = "embedded-hal"

[dependencies.arduino-hal]
path = "../../arduino-hal/"
features = ["arduino-mega2560"]
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"
6 changes: 6 additions & 0 deletions examples/arduino-nano/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 6 additions & 0 deletions examples/arduino-uno/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 6 additions & 0 deletions examples/atmega2560/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 6 additions & 0 deletions examples/nano168/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 6 additions & 0 deletions examples/sparkfun-promicro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 6 additions & 0 deletions examples/sparkfun-promini-3v3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 6 additions & 0 deletions examples/sparkfun-promini-5v/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 6 additions & 0 deletions examples/trinket-pro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 6 additions & 0 deletions examples/trinket/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 533ff75

Please sign in to comment.