Michael-F-Bryan / include_dir

The logical evolution of the include_str macro for embedding a directory tree into your binary.
https://michael-f-bryan.github.io/include_dir
MIT License
319 stars 36 forks source link

Switch to #[proc_macro] #62

Closed EmbersArc closed 2 years ago

EmbersArc commented 2 years ago

From the proc-macro-hack readme:

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.

I don't know if this is a drop-in replacement but it may be worth considering to native proc macros. proc-macro-hack leads to some unexpected things like false positives in rust-analyzer: https://github.com/rust-analyzer/rust-analyzer/issues/6835