Rahix / avr-hal-template

cargo-generate template for avr-hal projects
Apache License 2.0
130 stars 28 forks source link

error[E0658]: use of unstable library feature 'proc_macro_byte_character' #30

Closed vidurkhanal closed 4 months ago

vidurkhanal commented 5 months ago

Compiling the template as it is compiles two errors: error[E0658]: use of unstable library feature 'proc_macro_byte_character' and error[E0658]: use of unstable library feature 'proc_macro_c_str_literals'. Setting crate features at the top of the entry main.rs doesn't solve the problem.

However changing channel from nightly-2024-03-22 to just nightly compiles the code. Was I supposed to update the channel in the tool chain.

BenCaunt commented 5 months ago

I'm having the same issues compiling for the Arduino Leonardo variant (not certain that it should matter).

Compiled on nightly-aarch64-apple-darwin unchanged - rustc 1.79.0-nightly (ccfcd950b 2024-04-15).

Rahix commented 4 months ago

More info in https://github.com/Rahix/avr-hal/issues/537.

Rahix commented 4 months ago

I've pushed commit 4c3e6b0ffcda ("Pin proc-macro2 to an older version") so new projects generated from the template should not have the problem anymore.