Cargo Features

[dependencies]
backtrace = { version = "0.3.74", default-features = false, features = ["std", "serialize-serde", "coresymbolication", "kernel32", "unix-backtrace", "cpp_demangle"] }
default = std

By default libstd support is enabled.

std default

Include std support. This enables types like Backtrace.

Affects backtrace::trace, symbolize::resolve, symbolize::resolve_frame, symbolize::clear_symbol_cache

serialize-serde = serde
coresymbolication

=======================================
Deprecated/internal features

Only here for backwards compatibility purposes or for internal testing purposes. New code should use none of these features.

dbghelp dl_iterate_phdr dladdr kernel32
libunwind unix-backtrace

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

serde serialize-serde?

Enables serde

Optionally enable the ability to serialize a Backtrace, controlled through the serialize-serde feature below.

cpp_demangle implicit feature

Enables cpp_demangle

Optionally demangle C++ frames' symbols in backtraces.