Replies: 1 comment 4 replies
-
You would do something like this: [features]
default = ["async-std-rt"]
async-std-rt = ["async-std", "sqlx/runtime-async-std-native-tls"]
tokio-rt = ["tokio", "sqlx/runtime-tokio-native-tls"]
[dependencies]
async-std = { version = "1.10.0", features = ["attributes"], optional = true }
tokio = { version = "1.11.0", features = ["full"], optional = true }
sqlx = { version = "0.5.7", features = ["postgres", "uuid", "chrono", "json"] } |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have defined two features in a lib:
However, it only works when the
async-std-rt
feature is enabled. How can we set the dependency on SQLx for different runtime features?Beta Was this translation helpful? Give feedback.
All reactions