-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cargo build - error[E0658] - proc_macro::Literal::byte_character(byte) #537
Comments
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. As a first step, add this pinning here in the avr-hal-template so people who create new projects from now on are no longer affected. In the long run, we should look at finding a solution that can be rolled out to existing users as well. [1]: Rahix/avr-hal#537
The
For documentation, the dependency can be pinned using these lines in # 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" |
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
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
Examples in this repository now also have the dependency pin (#544). |
See <Rahix/avr-hal#537> for details.
See <Rahix/avr-hal#537> for details.
So What does everyone else think about this? Are there any problems with doing this? |
From #546: The CI of this project ( |
Originally reported in #535.
Due to a change in
proc-macro2
versionv1.0.80
, the toolchain version we use is no longer supported (see dtolnay/proc-macro2#451). To reproduce:which end with the following build error:
The solution to this issue comes in two parts:
proc-macro2
tov1.0.79
somewhere to ensure this won't hit us again. I am unsure where the right place for this is:avr-device
? Pulled in by everyone who might care about this, but feels like the wrong level for such a fix.avr-hal-template
? Gives users control over the fix, if it ever needs changing. Downside is that it does not reach existing users, only new ones...avr-hal/arduino-hal/atmega-hal
? Should allow reaching existing users more easily, but still not really the right level for the fix...The text was updated successfully, but these errors were encountered: