pineflash
pineflash copied to clipboard
Build failed on MacOS with error: unknown feature `proc_macro_span_shrink`
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, tryrustc --explain E0635. error: could not compileproc-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).