4 releases

Uses old Rust 2015

0.2.1 Sep 16, 2019
0.2.0 May 9, 2017
0.1.1 Oct 20, 2016
0.1.0 May 14, 2016

#1272 in Parser implementations

Download history 3263/week @ 2024-06-16 4063/week @ 2024-06-23 2619/week @ 2024-06-30 2382/week @ 2024-07-07 3351/week @ 2024-07-14 3125/week @ 2024-07-21 2804/week @ 2024-07-28 3369/week @ 2024-08-04 3822/week @ 2024-08-11 2687/week @ 2024-08-18 2944/week @ 2024-08-25 2855/week @ 2024-09-01 3829/week @ 2024-09-08 2516/week @ 2024-09-15 3210/week @ 2024-09-22 3164/week @ 2024-09-29

12,891 downloads per month

Apache-2.0

15KB
251 lines

Build Status 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.

Dependencies

~3.5–5MB
~80K SLoC