Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@ reqwest = { version = "0.12.28", default-features = false }
tower = "0.5.2"
tower-http = "0.6.8"
url = "2.5.8"

[profile.release]
codegen-units = 1
lto = true
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution, it will be good to have a more optimised release build. I think it would be better to use lto = "thin" here, what do you think? ThinLTO achieves optimisation results very close to "fat" LTO but with substantially less build time penalty

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I see in the linked issue that all three were compared and fat LTO is doing better at reducing binary size. I'll merge this as-is for now and if build times become an issue we can revisit. Thanks again!