rust_demangler icon indicating copy to clipboard operation
rust_demangler copied to clipboard

Python module for demangling rust function names

rust_demangler

A package for demangling Rust symbols, written in Python.

Setup

pip install rust_demangler

Usage

from rust_demangler import demangle
print(demangle(<mangled_name>))

Example

demangle("_ZN3foo3barE") == "foo::bar"  #legacy style
demangle("_RNvC6_123foo3bar") == "123foo::bar"  #v0 style

License

This project is licensed under the MIT License