focustrace 0.2.0

Small utility to print a backtrace containing only functions called from the current crate on panic.
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 5.17 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.36 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 21s Average build duration of successful builds.
  • all releases: 21s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • cmarkh/focustrace
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • cmarkh

focustrace

Small utility to print a backtrace containing only functions called from the current crate on panic.

It's a simple extension of the backtrace crate.

Usage

fn main() {
  focustrace::setup();
}

Example output on panic

panicked at src/lib.rs:43:9:
Test panic

src/lib.rs:4: focustrace::setup::{{closure}}::haa6742a590bf138b
src/lib.rs:43: focustrace::tests::test_setup::h6f4a089fcd9ad7b4
src/lib.rs:41: focustrace::tests::test_setup::{{closure}}::ha937ffcfc3bdf67a