Skip to content
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

deadpool-postgres 0.11 #224

Closed
VPaulV opened this issue Oct 31, 2023 · 4 comments · Fixed by #232
Closed

deadpool-postgres 0.11 #224

VPaulV opened this issue Oct 31, 2023 · 4 comments · Fixed by #232

Comments

@VPaulV
Copy link

VPaulV commented Oct 31, 2023

Hi guys,

.bind() is not working with deadpool-postgres 0.11. Is it possible to add support for the latest deadpool-postgres?
0.10 works fine, but 0.11 fails with:

error: the trait bound `deadpool::managed::Object<Manager>: cornucopia_async::GenericClient` is not satisfied
label: required by a bound introduced by this call
error: the trait bound `deadpool::managed::Object<Manager>: cornucopia_async::GenericClient` is not satisfied
label: the trait `cornucopia_async::GenericClient` is not implemented for `deadpool::managed::Object<Manager>`
note: required by a bound in `InsertUserStmt::bind`
label: the trait `cornucopia_async::GenericClient` is not implemented for `deadpool::managed::Object<Manager>`
the trait bound `deadpool::managed::Object<Manager>: cornucopia_async::GenericClient` is not satisfied
the following other types implement trait `cornucopia_async::GenericClient`:
  deadpool_postgres::Transaction<'_>
  Client
@jacobsvante
Copy link
Contributor

Having the same issue. Using the git repo instead of cornucopia-async v0.4.0 seems to work. @LouisGariepy @Virgiel time for a new release?

@LouisGariepy
Copy link
Member

I released two new versions of cornucopia_async. We should find a sustainable way to manage user-facing dependencies, but it should fix the issue for now, until there's a new version of deadpool-postgres :-).

@jacobsvante
Copy link
Contributor

cornucopia_async@v0.6.0 works great with deadpool-postgres@0.12.1! Thank you @LouisGariepy! :D

@jacobsvante
Copy link
Contributor

@LouisGariepy This seems to be back with deadpool-postgres@0.13... Can you make a 0.7 release for new deadpool version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants