4个版本
使用旧的Rust 2015
0.2.1 | 2019年9月16日 |
---|---|
0.2.0 | 2017年5月9日 |
0.1.1 | 2016年10月20日 |
0.1.0 | 2016年5月14日 |
#798 在 解析器实现 中
16,707 每月下载量
15KB
251 代码行
使用 rustc-demangle 去模糊化Rust符号名。 rustfilt
与 c++filt
类似,接受命令行参数中的模糊化符号名,如果没有提供任何参数,则接受从stdin的模糊化符号。去模糊化后的符号写入stdout。
安装
cargo install rustfilt
用法
要解模糊化文件,只需运行
rustfilt -i mangled.txt -o demangled.txt
Rustfilt 还可以接受来自stdin的数据,并将其管道传输到stdout
curl http://example.com/mangled-symbols.txt | rustfilt | less
默认情况下,rustfilt 会从模糊化名称中删除生成的 'hashes'。如果需要保留这些内容,只需将 -h
选项传递给 rustfilt。
依赖项
~2.6–4MB
~62K SLoC