this post was submitted on 23 Jan 2025
10 points (85.7% liked)
Rust
7258 readers
5 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
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
view the rest of the comments
Actually, dead code eliminination should do the trick, if you're compiling a binary at least (same for a library I think, but there could be re-exports there). Did you compile in release mode?
Yes I compiled in release mode, but manually removing
pub
function from dependencies was beneficial for some reason, I really don't want to have to do that.My release profile: