Closed bamidev closed 3 months ago
You're right. The original design is that you have to specify a runtime+tls feature flag , e.g. runtime-tokio-native-tls
.
The runtime-tokio
is transitive, and is simply used to signify that tokio has been enabled in sea-orm.
When you add sea-orm simply like this:
sea-orm = { version = "0.12.15", features = ["runtime-tokio", "sqlx-sqlite"] }
It will complain about no runtime being selected:Even though I use the "runtime-tokio" feature. It seems like it isn't being passed down to the
sqlx
crate.For the moment I use the workaround of adding this to my Cargo.toml:
sqlx = { features = ["runtime-tokio"] }
But it is just a workaround.