-
Notifications
You must be signed in to change notification settings - Fork 726
polyfill: allow dead code w/o built-in providers, no-std #2091
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
Conversation
Unrelated to this specific clippy finding I think our powerset job has been getting pretttttty chonky lately :-( Back when we added this step to the daily tests we only had ~5 features and the runtime was pretty manageable. We're up to ~9+ now and the power law is starting to punish us. The last successful run was 3 weeks ago and it took 15m to run through ~476 iterations. We added the Perhaps worth thinking on how to trim that down? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2091 +/- ##
=======================================
Coverage 94.78% 94.78%
=======================================
Files 102 102
Lines 23497 23497
=======================================
Hits 22271 22271
Misses 1226 1226 ☔ View full report in Codecov by Sentry. |
Only the `crypto/aws_lc_rs` and `crypto/ring` modules with std enabled use this polyfill. Since it's a small polyfill function we allow it to be dead code and avoid more complicated `cfg_attr` expressions.
Benchmark resultsInstruction countsSignificant differencesThere are no significant instruction count differences Other differencesClick to expand
Wall-timeSignificant differencesThere are no significant wall-time differences Other differencesClick to expand
Additional informationCheckout details:
|
There are some options to tell cargo-hack to reduce the feature power set. eg, we could add: grouping feature dependencies:
(I haven't tried any of these; just going from the docs.) |
I can fiddle with some of this in a follow-up 👍 |
The dead code warning from
clippy
for--no-default-features
builds has been breaking the daily powerset job (exemplar) since 1c33f4b landed.Since it's a small polyfill function we allow it to be dead code and avoid more complicated
cfg_attr
expressions. Here's a passing run with the change applied.