Cargo Features

[dependencies]
esp-backtrace = { version = "0.12.0", default-features = false, features = ["esp32", "esp32c2", "esp32c3", "esp32c6", "esp32h2", "esp32p4", "esp32s2", "esp32s3", "println", "defmt", "colors", "halt-cores", "panic-handler", "semihosting"] }
default = colors

The colors feature is set by default whenever esp-backtrace is added without default-features = false somewhere in the dependency tree.

esp32

You must enable exactly one of the below features to support the correct chip:

Enables esp32 of optional esp-println, openocd-semihosting of optional semihosting

esp32c2

Enables esp32c2 of optional esp-println

esp32c3

Enables esp32c3 of optional esp-println

esp32c6

Enables esp32c6 of optional esp-println

esp32h2

Enables esp32h2 of optional esp-println

esp32p4

Enables esp32p4 of optional esp-println

esp32s2

Enables esp32s2 of optional esp-println and openocd-semihosting of optional semihosting

semihosting:

Xtensa-specific: Use OpenOCD Semihosting.

See readme for details.

esp32s3

Enables esp32s3 of optional esp-println, openocd-semihosting of optional semihosting

println

Use esp-println

Enables esp-println

defmt

Use defmt

Enables defmt

colors default

You may optionally enable one or more of the below features to provide additional functionality:

custom-halt exception-handler halt-cores
panic-handler

Features from optional dependencies

semihosting implicit feature

Enables semihosting

semihosting:

Semihosting for AArch64, ARM, RISC-V, MIPS32, MIPS64, and Xtensa