[Solved] When was `lto = true` stabilized?

#1

Does anyone know what the first stable release was that supported this flag was:

# Cargo.toml
[profile.release]
lto = true

I can’t seem to find a blog post mentioning it. I’d like to include it in a repo I am creating that documents how to minimize Rust binary size.

1 Like

#2

I couldn’t remember it not being there, so I checked (TIL: rustup can still install 1.0.0 :slight_smile: ), and it is recognized (and makes a difference in the binary) there.

2 Likes

#3

Oh wow, thanks! It didn’t realize it had been around since the beginning. :laughing:

0 Likes

#4

lto = “thin” is the newer and probably unstable thing.

But yeah, lto is true is since forever. Been using it in my first rust project back at the 1.3 days :slight_smile:

2 Likes