-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Remove async-trait in favor of impl trait and native async in impls #196
Comments
Would this need an MSRV bump, and if so, to what version? This is just RPITIT, right? Why not use AFIT here? I do think it would be nice to adopt a more direct API eventually and am open to a PR, but unsure about the timeline here. It feels a little silly to adopt RPITIT now only to move over to AFIT later? |
Yes, this would bump the MSRV to 1.75.
This is both, because they're compatible. RPITIT for the trait declarations to require
Yeah, it would be a breaking change to move the declarations to AFIT later, but a very minor one because implementations wouldn't change at all, just code that's generic over these traits and assumes the returned futures are |
Okay, it will be a while before I want to accept a bump to 1.75, probably when we hit 1.81 or 1.83 or some such? |
Okay, so... In half a year or a bit more. That's seems like a lot to me but I'm not here to start a debate over MSRV policies :) Thanks for the fast responses! |
Yes, sorry -- I know I am on the conservative side here -- and given that this is definitely a lower-priority project for me I really don't want to maintain two branches in parallel. |
No worries, it's not like |
Hi! I would like to propose to redefine the
ManageConnection
andCustomizeConnection
traits fromto
for bb8 0.9.0.
This will allow
bb8
to be used without pulling in any proc-macros AFAICT, people will still be able to writeasync fn
in impls (just without#[async_trait]
), and it will improve the rendered documentation (see svix/omniqueue-rs#34 for the diff on another crate).I can send a PR if you agree that this is a good idea. In that case, do you want to keep
main
for the 0.8.x release line and create a new branch for 0.9.x, or have the PR againstmain
?The text was updated successfully, but these errors were encountered: