Sqlx and Tokio
StephanSchmidt opened this issue · comments
I want to use sqlx, octocrab and sqlxmq in a project.
Octocrab seems to have a tokio 0.2 dependency, and sqlx a tokio 1.x dependency. So I need to run sqlx with async std not tokio. But sqlxmq has a dependency on sqlx-tokio 1.x and sqlx can't run in two modes, so I would need to run the project sqlx also on tokio which then does not work with octocrab.
Is there a way for sqlxmq to work with async-std? Or any other idea?
Not at the moment, although I'd be open to a PR that adds async-std as a backend. However, your best option might be to upgrade Octocrab instead (to tokio 1.x).
Thank you. I'm not experienced enough in Rust for a PR. I'll talk to the Octocrab developer.