Skip to content

Remove Slow Parameters for Release Profile in Cargo.toml #445

Description

@WyvernIXTL

[profile.release]
codegen-units = 1
lto = true

Compiling from source with cargo install is very slow due to setting codegen-units = 1.

Instead it'd be better to have a separate optimized profile for ci:

[profile.optimized-release]
inherits = "release"
opt-level = 3
lto = "fat"
codegen-units = 1

This way ci takes its time to produce optimized binaries, while installs with cargo install are not terribly slow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions