Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't spend build time optimizing build-time-only crates
Crates used exclusively at build time, such as proc-macro crates and their dependencies, don't benefit substantially from optimization; they take far longer to optimize than time saved when running them during the build. No machine code from these crates will appear in the final compiled binary. Use the new profile-overrides mechanism in Rust 1.41 (https://doc.rust-lang.org/cargo/reference/profiles.html#overrides) to build such crates with opt-level 0. Before: Finished release [optimized] target(s) in 4m 20s After: Finished release [optimized] target(s) in 4m 07s
- Loading branch information