Demangle Rust symbols
Switch branches/tags
Nothing to show
Clone or download
Latest commit b95d861 May 6, 2018
Failed to load latest commit information.
src Handle data that doesn't have any newline Apr 25, 2017

Build Status

Demangle Rust symbol names using rustc-demangle. rustfilt works similarly to c++filt, in that it accepts mangled symbol names as command line arguments, and if none are provided it accepts mangled symbols from stdin. Demangled symbols are written to stdout.


cargo install rustfilt


To demangle a file, simply run:

rustfilt -i mangled.txt -o demangled.txt

Rustfilt can also accept data from stdin, and pipe to stdout:

curl | rustfilt | less

By default, rustfilt strips the generated 'hashes' from the mangled names. If these need to be kept, simply pass the -h option to rustfilt.