Crates.io | symbolic-demangle |
lib.rs | symbolic-demangle |
version | 12.12.3 |
source | src |
created_at | 2017-12-02 00:03:21.205857 |
updated_at | 2024-11-26 12:14:31.664177 |
description | A library to demangle symbols from various languages and compilers. |
homepage | https://github.com/getsentry/symbolic |
repository | https://github.com/getsentry/symbolic |
max_upload_size | |
id | 41287 |
size | 1,004,941 |
Demangling support for various languages and compilers.
Currently supported languages are:
legacy
and v0
)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.
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