Debug information that Rust generates is huge. In my case, in release mode, it's 480MB of debug info for a 22MB stripped executable.
I would like to keep some minimal debug info to get line numbers in backtraces, but 480MB for this seems excessive.
- Is it normal that the debug info is so large?
- Can I do something to generate only minimal debug information (line numbers only)?