Skip to content

Commit

Permalink
Allow using rustls with reqwest
Browse files Browse the repository at this point in the history
  • Loading branch information
titanous authored and olexiyb committed Jun 13, 2024
1 parent 5c53c51 commit 28a3ad8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ categories = [
authors = ["Franz-Aliu Okunega <aokunega@gmail.com>"]

[features]
default = ["rt_tokio_migrate"]
default = ["rt_tokio_migrate", "native-tls"]
native-tls = ["reqwest/native-tls"]
rustls = ["reqwest/rustls-tls"]
# for now only rt_tokio or rt_tokio_migrate can be used
rt_tokio = ["tokio", "reqwest"]
rt_tokio_migrate = ["tokio", "reqwest", "sqlx_tokio"]

[dependencies]
reqwest = { version = "0.12.3", optional = true, default-features = false, features = ["rustls-tls"]}
reqwest = { version = "0.12", optional = true, default-features = false }
#reqwest = { version = "0.11", optional = true, default-features = false }
tokio = { version = "1", features = ["full"], optional = true }
futures = "0.3"
Expand Down

0 comments on commit 28a3ad8

Please sign in to comment.