24 releases (breaking)

Uses new Rust 2024

0.18.1 Oct 30, 2025
0.17.0 Jul 16, 2025
0.15.1 Feb 24, 2025
0.14.2 Oct 10, 2024
0.3.0 Oct 6, 2022

#1917 in Embedded development

Download history 6923/week @ 2025-09-27 7205/week @ 2025-10-04 7831/week @ 2025-10-11 8179/week @ 2025-10-18 9215/week @ 2025-10-25 9654/week @ 2025-11-01 9832/week @ 2025-11-08 11525/week @ 2025-11-15 11320/week @ 2025-11-22 11912/week @ 2025-11-29 12151/week @ 2025-12-06 10871/week @ 2025-12-13 11260/week @ 2025-12-20 10882/week @ 2025-12-27 11499/week @ 2026-01-03 11638/week @ 2026-01-10

46,856 downloads per month
Used in 35 crates

MIT/Apache

780KB
15K SLoC

esp-backtrace - backtrace for ESP32 bare-metal

Crates.io docs.rs MSRV Crates.io Matrix

Supports the ESP32, ESP32-C2/C3/C6, ESP32-H2, ESP32-P4, and ESP32-S2/S3. Optional panic handler is included, which can be enabled via its respective feature.

Please note that when targeting a RISC-V device, you need to force frame pointers (i.e. "-C", "force-frame-pointers", in your .cargo/config.toml); this is not required for Xtensa.

You can get an array of backtrace addresses (currently limited to 10) via arch::backtrace() if you want to create a backtrace yourself (i.e. not using the panic handler).

When using the panic handler make sure to include use esp_backtrace as _;.

Minimum Supported Rust Version (MSRV)

This crate is guaranteed to compile when using the latest stable Rust version at the time of the crate's release. It might compile with older versions, but that may change in any new release, including patches.

License

Licensed under either of:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~1–2MB
~42K SLoC