6 releases

0.3.1 Feb 1, 2021
0.3.0 Apr 8, 2020
0.2.0 Mar 15, 2020
0.1.2 Mar 1, 2020
0.1.1 Feb 17, 2020

#16 in #coredump

32 downloads per month

MIT license

24KB
471 lines

crates.io

libunwind-rs

This crate provides high-level bindings for the libunwind library.

Supported targets:

  • x86_64-unknown-linux-gnu;
  • i686-unknown-linux-gnu;
  • i586-unknown-linux-gnu;
  • arm-unknown-linux-gnueabihf;
  • x86_64-unknown-linux-musl.

Tests are provided only for x86_64 target.

Installation

First, compile libunwind as a shared library and install it. Add this crate to your Cargo.toml:

[dependencies]
libunwind-rs = "0.3.1"

License

This crate is licensed under the MIT license.


lib.rs:

#libunwind-rs

libunwind-rs is a library providing safe Rust API for retrieving backtrace from local and remote process, and also from coredumps. Crate is build on a top of libunwind library.

Dependencies

~2–4.5MB
~91K SLoC