Crates.io | rustfilt |
lib.rs | rustfilt |
version | 0.2.1 |
source | src |
created_at | 2016-05-14 20:38:18.932855 |
updated_at | 2019-09-16 21:25:35.796487 |
description | Demangle Rust symbol names |
homepage | https://github.com/luser/rustfilt |
repository | https://github.com/luser/rustfilt |
max_upload_size | |
id | 5068 |
size | 25,145 |
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 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.