Skip to content

Commit

Permalink
Expose feature for choosing TLS backend for reqwest (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunklas authored Oct 26, 2024
1 parent cbe055b commit 0b0c5a6
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 1 deletion.
69 changes: 69 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion tower-oauth2-resource-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ http = "1.1.0"
jsonwebtoken = "9.3.0"
log = { workspace = true }
pin-project = "1.1.5"
reqwest = { version = "0.12.8", features = ["json"] }
reqwest = { version = "0.12.8", default-features = false, features = ["json"] }
serde = "1.0.210"
serde_with = "3.9.0"
tokio = { workspace = true, features = ["rt", "sync", "time"] }
Expand All @@ -27,3 +27,9 @@ rsa = "0.9.6"
serde_json = "1.0.117"
tower = { workspace = true, features = ["util"] }
wiremock = "0.6.0"

[features]
default = ["default-tls"]
default-tls = ["reqwest/default-tls"]
native-tls = ["reqwest/native-tls"]
rustls-tls = ["reqwest/rustls-tls"]

0 comments on commit 0b0c5a6

Please sign in to comment.