backtrace-rs
backtrace-rs copied to clipboard
Backtraces in Rust
Cfg out field instead of allowing dead_code and using zst; for Display and Debug, inline cfg instead copy&pasting almost full impl.
When using `-C opt-level=0` as the compilation optimization level, the test case `tests/smoke.rs/smoke_test_frames()` would trigger a panic. This is the command to compile (All of these four command could trigger...
Should be smaller code size
Update rustc-demangle to the latest version. This might soon be needed to correctly render `f16` and `f128` (see https://github.com/rust-lang/rust/pull/123816). rust-lang/rust [already uses that version](https://github.com/rust-lang/rust/blob/58426f4a5b69d10db1b0ffa017bac25f1b2e801e/Cargo.lock#L3441).
zstd has been introduced as an alternative to zlib for the compression of debug sections.[0] Toolchain support is widely present at this time but lack of support in backtrace is...
Rust has switched to using rust-lld by default on Linux, and it does not support the zlib-gnu or zlib-gabi arguments for --compress-debug-sections! Not surprising. It's... not GNU. Compensate for this...
This brings in https://github.com/rust-lang/backtrace-rs/pull/631 which fixes the win7 code. Will need to update std too.
I've replaced the comment about MSVC in src/backtrace/dbghelp*.rs as the same code is used for windows-gnu, see https://github.com/rust-lang/backtrace-rs/blob/5e05efa87905fb5b351a2bc5644d60c57d6d9327/src/backtrace/mod.rs#L169-L199
We should probably try to make sure backtrace's tests run against a variety of linkers, so that something like https://github.com/rust-lang/backtrace-rs/pull/627 doesn't creep up on us again.