|
|
|
|
|
by epage
204 days ago
|
|
I am very much a fan of codegen by generating code and saving it to disk and advocate for it in place of `build.rs` wherever possible. Unsure what the path forward for doing that for proc-macros would look like. There is talk of proc-macro expansion caching so rustc can decide when it needs to re-run proc-macros. It requires more information from proc-macros and performance results have been a mixed bag. What I am most looking forward to help with this are: - reflection which is being worked on, see https://rust-lang.github.io/rust-project-goals/2025h2/reflec... - declarative attribute and derive macros which have an initial implementation but more work around them is needed to make them viable |
|