This came up in HN discussion that Bloaty does not have currently demangling for Rust symbols, and such feature would be useful.
There are at least two different libraries that implement Rust demangling:
-
GNU libiberty: https://github.com/gcc-mirror/gcc/blob/master/libiberty/rust-demangle.c
-
rustc-demangle: https://github.com/alexcrichton/rustc-demangle
The latter has the downside of being implemented in Rust, so a small wrapper is needed to make it work with C++ code. Might need bit of work to make it play with CMake nicely.
I have made a quick proof of concept version based on rustc-demangle here: https://github.com/zokier/bloaty/tree/rust_demangle
This came up in HN discussion that Bloaty does not have currently demangling for Rust symbols, and such feature would be useful.
There are at least two different libraries that implement Rust demangling:
GNU libiberty: https://github.com/gcc-mirror/gcc/blob/master/libiberty/rust-demangle.c
rustc-demangle: https://github.com/alexcrichton/rustc-demangle
The latter has the downside of being implemented in Rust, so a small wrapper is needed to make it work with C++ code. Might need bit of work to make it play with CMake nicely.
I have made a quick proof of concept version based on rustc-demangle here: https://github.com/zokier/bloaty/tree/rust_demangle