Skip to content

Docs are missing possible values for LTO #6214

Closed
@0xpr03

Description

@0xpr03

Problem

Docs are missing the possible values for lto.
I just got to know via #rust irc about

[profile.release]
lto = "fat"

This value isn't listed or documented in the cargo docs.

Steps

  1. Go to https://doc.rust-lang.org/cargo/reference/config.html#configuration-keys it's not documented

Possible Solution(s)

Document all possible values.

Notes
I was told that lto is enabled by default for release builds, going by the docs that isn't true, is it ?
At least for me it made a difference of ~3 MiB to set lto = "fat"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions