-
Notifications
You must be signed in to change notification settings - Fork 50
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
Support v0 mangling better #43
Comments
Yes, the parser is for current version only. |
Looks like we have to write a custom v0 parser, since it's way more complex than legacy and we can't simply split the name by This will also allow us to skip the disambiguation hashes. But the format is quite complex and we can't use the |
It looks like https://github.com/michaelwoerister/std-mangle-rs is the recommended (rust-lang/rustc-demangle#28) solution to this problem. |
Interesting. I will try it out. The only problem is how fast it would be when we need to parse thousands of names. |
By the way, what is the difference between v0 and v2? |
Also, look like the
|
Done. Please test it out. |
Works great:
|
Using the new mangling scheme is convenient because it gives more information about the particular monomorphization. However it seems like crate detection is broken.
RUSTFLAGS="-Z symbol-mangling-version=v0" rustup run nightly cargo bloat --release
gives
The text was updated successfully, but these errors were encountered: