-
Notifications
You must be signed in to change notification settings - Fork 51
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
Run on Library Crates #5
Comments
No, because executables and libraries are very different. Especially static libraries, which is the default. Examples support is a good idea, but note that |
That would be fine. I think having that much support would still be extremely helpful. :) |
I'm compiling my code to a static & dynamic library, so extending it to work on those cases would be really cool too. |
@CryZe it's not possible due to the way executables and libraries are work. You can measure only executables. |
Can you elaborate why? |
I'm not that good in this, but the basics look like this:
|
Done. |
Thank you! :) |
Any chance we can reconsider this for |
There is nothing interesting in |
There is interesting info in a |
I will rephrase: it's not interested for cargo-bloat use case. cargo-bloat analyzes final binaries. That's it. |
Why? I was planning on implementing this support, and would really rather not maintain a project fork for a feature that I believe should be there in the first place. Right now we have to settle with Bloaty, which doesn't yet have Rust name demangling. |
Because cargo-bloat prints |
Thanks for creating this tool! 😄
Is there a way to run cargo bloat on crates that are just libraries? If you need an executable to run on, I could pass
--example foo
to generate an executable for that particular example. I would like to use this on my crates to see if any functions/dependencies are taking up most of the binary generated by anyone using the crate.The text was updated successfully, but these errors were encountered: