A package for demangling Rust symbols, written in Python. It provides a simple interface to convert Rust's compiler-generated symbol names into human-readable forms. The current version is 1.0, last updated in April 2021, suggesting a low release cadence.
pip install rust-demanglerVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to import the `demangle` function and use it to demangle common Rust symbol names. It includes examples for both older and newer mangling styles for illustrative purposes.
Manually verify demangled output for critical paths. If issues persist, consider using a more actively maintained demangling tool or the native `rustc-demangle` Rust crate directly.
Test demangling against known symbols from the specific target architecture. If problems arise, investigate platform-specific demangling behavior or alternative tools like `rustfilt`.
Be aware of potential mismatches with very recent Rust compiler outputs. If the demangling functionality is critical and needs to be perfectly aligned with the absolute latest Rust compiler changes, consider direct integration with the `rustc-demangle` Rust crate if your project allows for it.
Run `pip install rust-demangler` to install the library.
Change your import statement to `from rust_demangler import demangle`.
Verify that the `rust-demangler` library is the most up-to-date available. If the issue persists with modern Rust binaries, consider that the library might not support the latest mangling standards due to its last update date. Alternative tools like `rustfilt` (a Rust CLI tool) may offer more up-to-date demangling capabilities.
No dependency data recorded yet.