rust-demangler
A package for demangling Rust symbols
What it is and what it does
rust_demangler is a pure-Python utility that takes Rust's internal symbol names—the mangled identifiers generated by the Rust compiler—and converts them back into readable namespace-qualified names. It handles both the older legacy mangling scheme (names starting with _ZN) and the newer v0 scheme (_RN prefix), which are used by different Rust compiler versions and contexts.
The package is straightforward to use: import the demangle function and pass it a mangled symbol string to get back the human-readable form. It has no external dependencies, making it lightweight to add to any project that needs to parse or display Rust symbols—common when working with profilers, debuggers, crash reports, or build artifacts.
Use it for:
- Parse and display Rust symbol names in crash reports or stack traces from compiled binaries.
- Demangle symbols in profiler output to identify which Rust functions are consuming resources.
- Convert symbol names in debugger output or binary analysis tools into readable function identifiers.
- Process build artifacts or object files that contain Rust symbols for documentation or inspection.
- Integrate symbol demangling into custom tooling for analyzing Rust compiled code.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Converts mangled Rust symbol names into their human-readable form, supporting both legacy and v0 mangling styles.
Yes, if you need Rust symbol demangling and can accept that the package is no longer maintained. It has no dependencies, installs easily, and carries no security vulnerabilities. The core functionality is narrow and unlikely to break, but verify that it handles the specific mangling schemes your use case encounters before relying on it in production.
Install
rust-demangler on PyPI
pip
pip install rust-demangleruv
uv add rust-demanglerpoetry
poetry add rust-demanglerInstalling rust-demangler
Before you install
Low friction to install; no runtime dependencies. However, the package has been abandoned since its single release on 2021-04-24 with no updates or maintenance since then.
License in practice
MIT License permits free use, modification, and distribution with minimal restrictions, making it safe to adopt from a licensing perspective.
Quickstart
pip install rust_demangler
from rust_demangler import demangle
print(demangle("_ZN3foo3barE")) # outputs: foo::bar
Verify before relying
- Whether the demangling implementation handles all current Rust symbol formats or only the legacy and v0 styles shown in examples.
- Whether the package works correctly with modern Python versions given the lack of maintenance since 2021.
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 1,938 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 370,386/month — #7,178 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: rust_demangler-1.0-py3-none-any.whl
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
cxxfiltDemangle C++ symbol names by wrapping the…
permissive · top 5,000 on PyPI
itanium-demanglerParses Itanium C++ ABI mangled symbols into an…
permissive · top 15,000 on PyPI
pydemumbleProvides Python bindings to demumble, a tool…
permissive · top 15,000 on PyPI
mapfile_parserParses compiled binary map files (GNU ld, clang…
unclear · top 15,000 on PyPI
typeid-pythonGenerates and parses TypeIDs—type-safe,…
permissive · top 15,000 on PyPI
bnunicodenormalizerNormalizes Bangla Unicode text by fixing…
permissive · top 15,000 on PyPI
pyobjc-framework-SymbolsProvides Python bindings for macOS's Symbols…
permissive · top 15,000 on PyPI
currency-symbolsMaps ISO 4217 currency codes to their symbols…
permissive · top 5,000 on PyPI
soldrSoldr is a Python wrapper that downloads Rust…
permissive · top 15,000 on PyPI
setuptools-rustsetuptools-rust is a setuptools plugin that…
permissive · top 5,000 on PyPI