#symbolication #demangle #tag-production

symbolic-demangle

A library to demangle symbols from various languages and compilers

112 stable releases (11 major)

12.8.0 Dec 1, 2023
12.7.1 Nov 29, 2023
12.5.0 Oct 24, 2023
12.3.0 Jul 19, 2023
1.1.5 Dec 2, 2017

#39 in Debugging

Download history 111887/week @ 2023-10-28 98934/week @ 2023-11-04 100215/week @ 2023-11-11 87122/week @ 2023-11-18 102509/week @ 2023-11-25 90222/week @ 2023-12-02 85604/week @ 2023-12-09 88194/week @ 2023-12-16 43178/week @ 2023-12-23 73378/week @ 2023-12-30 99076/week @ 2024-01-06 107510/week @ 2024-01-13 117719/week @ 2024-01-20 110350/week @ 2024-01-27 109379/week @ 2024-02-03 99421/week @ 2024-02-10

457,852 downloads per month
Used in 164 crates (11 directly)

MIT license

605KB
15K SLoC

C++ 13K 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

~335–560KB
~10K SLoC