backtracer_core 0.0.3

A library to acquire a stack trace (backtrace) at runtime in a no-std Rust program.


A library for acquiring backtraces at runtime for Rust no-std environments. If you are not in a no-std environment, you probably want to use instead.


backtracer = "0.0.1"
extern crate backtracer;


Use the trace and resolve functions directly.

extern crate backtracer;

fn main() {
    backtracer::trace(|frame| {
        let ip = frame.ip();
        let symbol_address = frame.symbol_address();

        // Resolve this instruction pointer to a symbol name
        backtracer::resolve(ip, |symbol| {
            if let Some(name) = {
                // ...
            if let Some(filename) = symbol.filename() {
                // ...

        true // keep going to the next frame

Platform Support

This should work on any platform with minimal implementation effort.