How to cornucopia with deadpool_postgres / tokio_postgres

144 Views Asked by At

I'm following the Rust on Nail guide to setup the project. It uses cornucopia to generate rust code from SQL queries, and deadpool_tokio / tokio_postgres for client.

When running the test to check DB connection, i'm getting the following error:

error[E0277]: the trait bound `deadpool::managed::Object<Manager>: cornucopia_async::GenericClient` is not satisfied

I'm using the exact same code as shown in the link, but it does not seem to work.

0

There are 0 best solutions below