Closed mmddvg closed 2 years ago
it was because of crate version's not being synced; i had to fork this crate and update its dependencies manually; anyone with same problem can do the same too; just have to wait until updates will be applied.
Mind showing how you did that? Was having this issue when using rocket_db_pools
Mind showing how you did that? Was having this issue when using
rocket_db_pools
you just gotta make sure rocket_okapi and rocket_db_pools are pointing to the same version of Rocket, you can do so by changing their Cargo.toml files
For anyone finding this, solution now just seems to be to add "rocket_db_pools"
to rocket_okapi
features:
rocket_okapi = { version = "0.8.0", features = ["rocket_db_pools"] }
hello , so i'm currently using rocket v0.5.0rc.2 with rocket_okapi 0.8.0-rc.2; i implement the
OpenApiFromRequest
trait manually for my diesel connection pool as instructed in your documentation; and as you know , thedatabase
macro implements theFromRequest
trait automatically on my connection pool. but stillOpenApiFromRequest
is asking me to implement theFromRequest
trait. i tried to implementFromRequest
manually as well(beside thedatabase
macro) and as expected i got an error about conflicting implementation ofFromRequest
trait. what could be causing this and what can i do ? thanks in advance