Replies: 1 comment 2 replies
-
Thanks for bringing it up. I was also intrigued when reading about it, and thought that what's really missing now to set it up is usage statistics to know which crates would be eligible. Tests usually test the entire surface of their crates, but third-party crates are probably mostly unused. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hint-mostly-unused enables lazy codegen for crates, can be enabled for libraries by adding:
and enable
-Zprofile-hint-mostly-unused
using cargo nightly.Given that gix has lots of function and for many simple use cases, they are just left unused, probably makes sense to turn this on for the crate gix at least.
It might even speedup the tests
https://blog.rust-lang.org/inside-rust/2025/07/15/call-for-testing-hint-mostly-unused/
Beta Was this translation helpful? Give feedback.
All reactions