Hacker News new | ask | show | jobs
by strager 1253 days ago
I have heard talk of compiling proc macro crates with different rustc flags than other code. But I didn't go down this rabbit hole.
1 comments

Someone recently looked into doing this by default. The problem was the results varied depending on how often your "host dependencies" (proc macro, build.rs) were shared with your "target dependencies" (`dependencies`, `dev-dependencies`). When there was a lot of sharing, it hurt, but otherwise it sped up build times.