Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luser/rustfilt
Demangle Rust symbols
https://github.com/luser/rustfilt
Last synced: 6 days ago
JSON representation
Demangle Rust symbols
- Host: GitHub
- URL: https://github.com/luser/rustfilt
- Owner: luser
- License: apache-2.0
- Created: 2016-05-13T17:00:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-05-31T16:23:14.000Z (over 1 year ago)
- Last Synced: 2024-10-14T02:47:50.211Z (3 months ago)
- Language: Rust
- Size: 34.2 KB
- Stars: 236
- Watchers: 9
- Forks: 20
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![main](https://github.com/luser/rustfilt/actions/workflows/main.yml/badge.svg)](https://github.com/luser/rustfilt/actions/workflows/main.yml)
[![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.