Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose a richer description of demangled symbol. #28

Open
jrmuizel opened this issue Jul 24, 2019 · 3 comments
Open

Expose a richer description of demangled symbol. #28

jrmuizel opened this issue Jul 24, 2019 · 3 comments

Comments

@jrmuizel
Copy link

This would help those who would otherwise try to parse the demangled name like cargo bloat

https://docs.rs/msvc-demangler/0.7.0/msvc_demangler/struct.ParseResult.html is an example of this for msvc style demangling.

@eddyb
Copy link
Member

eddyb commented Aug 13, 2019

See also @michaelwoerister's std-mangle-rs for the new mangling scheme (I'm not sure if it's updated to the final RFC version).

The difference between this crate and that is this crate only requires libcore and prints while demangling, whereas that one demangles to an Arc tree (i.e. it needs allocation).

@EFanZh
Copy link

EFanZh commented May 15, 2021

I have tried std-mangle-rs, but it does not handle the current v0 mangling syntax very well. So I decided to write one myself: https://github.com/EFanZh/ast-demangle, which supports the current v0 mangling scheme. I hope it can be useful for anyone that’s interested.

@michaelwoerister
Copy link
Member

That looks pretty good, @EFanZh. Keep up the good work! 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants