Skip to content

luser/rustfilt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

main Crates.io

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.

Installation

cargo install rustfilt

Usage

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 http://example.com/mangled-symbols.txt | 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.