Skip to content

Commit

Permalink
Merge pull request #10 from hmac/hmac-native-tls-optional
Browse files Browse the repository at this point in the history
feat: allow sqlx with rustls instead of native-tls
  • Loading branch information
nlopes authored Jan 18, 2024
2 parents f0c50be + 325e731 commit d72e264
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ default-members = ["."]
resolver = "2"

[features]
default = []
sqlx = ["dep:sqlx", "sqlx?/tls-native-tls"]
default = ["native-tls"]
sqlx = ["dep:sqlx"]
diesel = ["dep:diesel", "dep:diesel_migrations"]
macros = []
runtime-async-std = ["sqlx?/runtime-async-std", "dep:async-std"]
Expand All @@ -28,6 +28,9 @@ sqlite = ["sqlx?/sqlite", "diesel?/sqlite", "diesel_migrations?/sqlite"]
mysql = ["sqlx?/mysql", "diesel?/mysql", "diesel_migrations?/mysql", "url", "percent-encoding"]
postgres = ["sqlx?/postgres", "diesel?/postgres", "url", "percent-encoding"]

native-tls = ["sqlx?/tls-native-tls"]
rustls = ["sqlx?/tls-rustls"]

[dependencies]
async-std = { version = "1", optional = true } # this has to include default due to task::block_on usage
chrono = { version = "0.4", features = ["clock"], default-features = false }
Expand Down

0 comments on commit d72e264

Please sign in to comment.