Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 435 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 435 Bytes

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