Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't spend build time optimizing build-time-only crates #2

Merged
merged 1 commit into from
Jul 13, 2020

Commits on Jul 12, 2020

  1. 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.
    
    This substantially speeds up build time.
    joshtriplett committed Jul 12, 2020
    Configuration menu
    Copy the full SHA
    add2e3e View commit details
    Browse the repository at this point in the history