jasta / esp32-tokio-demo

Demo of tokio running on esp32 using esp-idf
MIT License
33 stars 5 forks source link

Compilation fails at proc-macro2 #5

Closed lulingar closed 6 months ago

lulingar commented 6 months ago

I'm trying this repo out, with some changes from #4, but I get this traceback during cargo run:

   ...
   Compiling regex-syntax v0.8.3
error[E0658]: use of unstable library feature 'proc_macro_byte_character'
   --> /home/being/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.81/src/wrapper.rs:871:21
    |
871 |                     proc_macro::Literal::byte_character(byte)
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: see issue #115268 <https://github.com/rust-lang/rust/issues/115268> for more information
    = help: add `#![feature(proc_macro_byte_character)]` to the crate attributes to enable
    = note: this compiler was built on 2024-04-03; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature 'proc_macro_c_str_literals'
   --> /home/being/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.81/src/wrapper.rs:898:21
    |
898 |                     proc_macro::Literal::c_string(string)
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: see issue #119750 <https://github.com/rust-lang/rust/issues/119750> for more information
    = help: add `#![feature(proc_macro_c_str_literals)]` to the crate attributes to enable
    = note: this compiler was built on 2024-04-03; consider upgrading it if it is out of date

I guess this happens due to a breaking change in proc-macro2 which isn't pinned in Cargo.toml? (ah, it seems to be the case)

lulingar commented 6 months ago

Ok, so this worked by updating my rust nightly to 1.79+.