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.
https://github.com/johnthagen/min-sized-rust#enable-link-time-optimization-lto
1 Like
I couldn't remember it not being there, so I checked (TIL: rustup can still install 1.0.0 ), and it is recognized (and makes a difference in the binary) there.
2 Likes
birkenfeld:
and it is recognized
Oh wow, thanks! It didn't realize it had been around since the beginning.
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
2 Likes