skillfed

rust-demangler

A package for demangling Rust symbols

rust-demangler v1.0 370.4K downloads/30d#7,178 on PyPI20
Permissive license Abandoned released

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-demangler

uv

uv add rust-demangler

poetry

poetry add rust-demangler

Installing 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

License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3

Tags

rust symbol demanglingdemangle rust namesrust name demanglingconvert mangled rust symbolsrust symbol resolverdecode rust identifiers
rust-toolingsymbol-processing

More Build Tools packages