You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: As of Rust 1.45 this crate is superseded by native support for #[proc_macro] in expression position. Only consider using this crate if you care about supporting compilers between 1.31 and 1.45.
If supported older compilers is important, it is possible to use build cfg attrs to conditionally use proc_macro only when it is supported. Here is an example of a PR that does that: rust-lang/futures-rs#2407
If supporting older compilers isn't a concern, proc_macro_hack can simply be replaced with proc_macro.
The text was updated successfully, but these errors were encountered:
The macros using
proc_macro_hack
don't work with Rust Analyzer ( rust-lang/rust-analyzer#6835 ).From the proc-macro-hack repo:
If supported older compilers is important, it is possible to use build cfg attrs to conditionally use proc_macro only when it is supported. Here is an example of a PR that does that: rust-lang/futures-rs#2407
If supporting older compilers isn't a concern, proc_macro_hack can simply be replaced with proc_macro.
The text was updated successfully, but these errors were encountered: