Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
stevenhuang
on May 10, 2025
|
parent
|
context
|
favorite
| on:
Rust’s dependencies are starting to worry me
When talking about LTO we don't expect it to be removing code used in runtime. Such code is not dead code, by definition.
If you want to disable certain runtime features, you'd do so with feature flags.
whstl
on May 10, 2025
[–]
Sure, but I'm talking about bloat in libraries that don't get LTO'd. If there are no feature flags and no plugin functionality, LTO can't do its job. There are plenty of non-core libraries like this.
Consider applying for YC's Winter 2027 batch!
Applications
are open till November 2.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
If you want to disable certain runtime features, you'd do so with feature flags.