Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: remove
workspace-hack
from proc-macro crates' dependencies
To avoid many dependencies compiled twice, once as normal dependency and once as build-dependency (including very heavy onces, like zstd, aws-sdk-s3). **This reduces fresh debug build's compile time from >400s to <300s on my mac.** I'm not 100% sure about the mechanism yet, but it's clear that feature selection and dependency selection work differently for build-dependencies (incl proc-macros). When `workspack-hack` is used as a proc-macro crate's dependency, all its dependencies *can be* compiled twice. See #9553 (comment) for more details.
- Loading branch information