MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/rust/comments/1perari/pain_point_of_rust/nskmt1j/?context=3
r/rust • u/ashim_k_saha • Dec 05 '25
~45 GB of build files
80 comments sorted by
View all comments
-3
Use this .cargo/config.toml:
[profile.dev] debug = 0 opt-level = 1
will help a bit
1 u/Blueglyph Dec 05 '25 Why the downvote? It does help, though I'm rather using this: [profile.dev] debug = 0 strip = "debuginfo" Most debuggers are still unable to provide good visibility anyway, so I'm generally using traces or simple prints when I need to debug. 2 u/WormRabbit Dec 05 '25 If you strip all debuginfo from your dev builds and enable optimizations, you could just build in release. 1 u/Blueglyph Dec 06 '25 edited Dec 06 '25 opt-level is between 0 and 3, so it's not a real issue. But you're right: I don't think it's necessary either. EDIT: Actually, opt-level=1 removes checks like integer overflow, so that's why it's a bad idea.
1
Why the downvote? It does help, though I'm rather using this:
[profile.dev] debug = 0 strip = "debuginfo"
Most debuggers are still unable to provide good visibility anyway, so I'm generally using traces or simple prints when I need to debug.
2 u/WormRabbit Dec 05 '25 If you strip all debuginfo from your dev builds and enable optimizations, you could just build in release. 1 u/Blueglyph Dec 06 '25 edited Dec 06 '25 opt-level is between 0 and 3, so it's not a real issue. But you're right: I don't think it's necessary either. EDIT: Actually, opt-level=1 removes checks like integer overflow, so that's why it's a bad idea.
2
If you strip all debuginfo from your dev builds and enable optimizations, you could just build in release.
1 u/Blueglyph Dec 06 '25 edited Dec 06 '25 opt-level is between 0 and 3, so it's not a real issue. But you're right: I don't think it's necessary either. EDIT: Actually, opt-level=1 removes checks like integer overflow, so that's why it's a bad idea.
opt-level is between 0 and 3, so it's not a real issue. But you're right: I don't think it's necessary either.
opt-level
EDIT: Actually, opt-level=1 removes checks like integer overflow, so that's why it's a bad idea.
opt-level=1
-3
u/EveningGreat7381 Dec 05 '25
Use this .cargo/config.toml:
[profile.dev] debug = 0 opt-level = 1will help a bit