File: README.md

package info (click to toggle)
rust-rustfilt 0.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 116 kB
  • sloc: makefile: 15
file content (21 lines) | stat: -rw-r--r-- 949 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[![Build Status](https://travis-ci.org/luser/rustfilt.svg?branch=master)](https://travis-ci.org/luser/rustfilt) [![Crates.io](https://img.shields.io/crates/v/rustfilt.svg)](https://crates.io/crates/rustfilt)

Demangle Rust symbol names using [rustc-demangle](https://github.com/alexcrichton/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
````bash
cargo install rustfilt
````

## Usage
To demangle a file, simply run:
````bash
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.