#demangle #symbolic #trace #stack #symbols

symbolic-demangle

A library to demangle symbols from various languages and compilers

61 stable releases (7 major)

new 8.0.5 Mar 2, 2021
8.0.2 Jan 6, 2021
8.0.0 Nov 30, 2020
7.5.0 Aug 21, 2020
1.1.5 Dec 2, 2017
Download history 1423/week @ 2020-11-10 1703/week @ 2020-11-17 1408/week @ 2020-11-24 2574/week @ 2020-12-01 2084/week @ 2020-12-08 2012/week @ 2020-12-15 920/week @ 2020-12-22 1117/week @ 2020-12-29 1550/week @ 2021-01-05 2724/week @ 2021-01-12 6273/week @ 2021-01-19 6632/week @ 2021-01-26 7328/week @ 2021-02-02 7074/week @ 2021-02-09 9533/week @ 2021-02-16 8548/week @ 2021-02-23

19,588 downloads per month
Used in 16 crates (3 directly)

MIT license

550KB
13K SLoC

C++ 12K SLoC // 0.0% comments Rust 1.5K SLoC // 0.0% comments Python 96 SLoC // 0.0% comments

Build Status

symbolic-demangle

Demangling support for various languages and compilers.

Currently supported languages are:

  • C++ (GCC-style compilers and MSVC)
  • Rust (both legacy and v0)
  • Swift (up to Swift 5.2)
  • ObjC (only symbol detection)

As the demangling schemes for the languages are different, the supported demangling features are inconsistent. For example, argument types were not encoded in legacy Rust mangling and thus not available in demangled names.

This module is part of the symbolic crate and can be enabled via the demangle feature.

Examples

use symbolic::common::{Language, Name};
use symbolic::demangle::{Demangle, DemangleOptions};

let name = Name::new("__ZN3std2io4Read11read_to_end17hb85a0f6802e14499E");
assert_eq!(name.detect_language(), Language::Rust);
assert_eq!(name.try_demangle(DemangleOptions::default()), "std::io::Read::read_to_end");

License: MIT

Dependencies

~210–395KB