Skip to content
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

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

Open
arunkv opened this issue Nov 5, 2023 · 0 comments
Open

Comments

@arunkv
Copy link

arunkv commented Nov 5, 2023

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant