-
Notifications
You must be signed in to change notification settings - Fork 41
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
Gate some commonly unused traits behind a feature #884
Conversation
This is a breaking change Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #884 +/- ##
=========================================
Coverage 12.75% 12.75%
=========================================
Files 189 189
Lines 138232 140569 +2337
=========================================
+ Hits 17635 17934 +299
- Misses 120597 122635 +2038
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these new features should also somehow show up in .github/workflows/CI.yml
. I'm not quite sure how. I am not even sure whether this needs to be added there or if --all-features
is enough...
Oh and for the test failures: I guess at least But... should |
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
@@ -21,9 +21,17 @@ serde = { version = "1", features = ["derive"], optional = true } | |||
criterion = "0.5" | |||
|
|||
[features] | |||
default = ["std"] | |||
default = ["extra-traits", "std"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm.... do we really want this to be enabled by default?
Well... I guess it does not matter for now. 🤷
@Mergifyio refresh |
✅ Pull request refreshed |
Adds an
extra-traits
feature that gates some of the less-commonly-used traits. It also reimplementsDebug
using a more simple implementation if it is disabled and disables request parsing.Using this as a benchmark:
master
is currently 19.62s to build on my laptop. This branch builds in 10.41s. That is almost halving the compile time, by my measurements. Definitely still needs improvement but at least we aren't the slowest build inalacritty
's tree anymore.This is a breaking change.
cc #883