this post was submitted on 22 Oct 2024
65 points (100.0% liked)

Rust

6321 readers
17 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] FizzyOrange@programming.dev 18 points 3 months ago (5 children)

Unless the binary size difference is insane, who would say "oh well we were going to pick the library that wasn't riddled with security issues but we decided to save 2MB instead, hope that makes you feel better about your $12m cybersecurity fine!".

[–] KamikazeRusher@lemm.ee 4 points 3 months ago (3 children)

There are only going to be edge-cases where the binary size will really cause headache. Individual projects probably won’t worry too much about a size difference if it’s less than 10-20MB.

[–] JoYo@lemmy.ml 3 points 3 months ago (2 children)

my whole career is those edge cases

[–] jenesaisquoi@feddit.org 1 points 2 days ago

You want lto = full and opt-level = s my dude/dudette

load more comments (1 replies)
load more comments (1 replies)
load more comments (2 replies)