Spagett1 / pineflash

A tool to flash ironos to the pinecil soldering iron and possibly other pine64 devices in the future
Other
235 stars 13 forks source link

Build failed on MacOS with error: unknown feature `proc_macro_span_shrink` #67

Open arunkv opened 11 months ago

arunkv commented 11 months ago

Building on MacOS Sonoma from code. Ran into the following error:

error[E0635]: unknown feature proc_macro_span_shrink --> /Users/arun/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.56/src/lib.rs:92:30 | 92 | feature(proc_macro_span, proc_macro_span_shrink) | ^^^^^^^^^^^^^^^^^^^^^^ For more information about this error, try rustc --explain E0635. error: could not compile proc-macro2 (lib) due to previous error

I was able to get around this by using proc-macro2 1.0.60+. Here's the dependency added to Cargo.toml:

proc-macro2 = "1.0.60"

After this the build went through fine (with proc-macro2 v1.0.69).