4 ms·
Can I go further and disable stack traces as well, without giving up entirely on std? I don't want my release builds to have any of the extra code required to w
by mwcampbell 7y ago
Can I go further and disable stack traces as well, without giving up entirely on std? I don't want my release builds to have any of the extra code required to walk the stack. Just let the app crash; if I want a stack trace, I'll use a debugger.
- steveklabnik 7y agoI don’t remember details, but there’s somehow to do it, I think.
- connicpu 7y agoAlmost all of the bloat you get for stack traces is the extra information embedded in the stack frames, which you still need if you want your debugger to be able to display stack traces. If you don't want them to get printed on panic, you can give it a custom panic hook that doesn't do the stack trace walk.