8 ms·
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.
by strager 4y 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.
- epage 4y agoSomeone 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.