-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
bb8: Make parking_lot an optional feature enabled by default #152
Conversation
Well, bb8 currently has an MSRV of 1.57, so we cannot rely on the |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #152 +/- ##
==========================================
+ Coverage 74.11% 74.28% +0.16%
==========================================
Files 6 6
Lines 537 556 +19
==========================================
+ Hits 398 413 +15
- Misses 139 143 +4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
The pool constructor isn't To put it behind a feature flag I'll check what other libraries do in this case, because |
a12c61d
to
54f5343
Compare
Done. Please tell me whether the |
Well, cargo's |
I installed 1.57 and I can work around the issue by naming the feature Another thing, compilation failed here with "there is no argument named |
54f5343
to
fe8d029
Compare
Okay, let's bump the MSRV to 1.60 (in a separate commit) so we can use The CI setup, as I recall it, is a bit strange because the redis crate has a newer MSRV than the core bb8 crates. But bumping the MSRV should fix this anyway. |
Done. (For some reason I did not get notified by Github of your comment) |
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.
Thanks!
Rust 1.62 improved
std::sync::Mutex
speed and 1.63const
ified its constructor. It can now be used in the same contextsparking_lot
's implementation can.Currently,
bb8
is enabling theparking_lot
tokio feature for its users. A library should probably not do that without a good reason. With the recent-ish improvements tostd::sync::Mutex
, I believe we can dropparking_lot
from the dependency tree entirely.