Skip to content

Commit

Permalink
feat: Forward TLS implementation selection to reqwest (#488)
Browse files Browse the repository at this point in the history
The TLS implementation is selected by either feature `use-rustls` or
`use-native-tls`. The selection of the TLS implementation is forwarded
to the `request` dependency which otherwise defaults to `native-tls`.
  • Loading branch information
flxo authored Oct 26, 2022
1 parent 29f5b1e commit c93afb0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
27 changes: 27 additions & 0 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions rumqttd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ rouille = "3.1.1"
# x509-parser = {version= "0.9.2", optional = true}
futures-util = "0.3.16"
parking_lot = "0.11.2"
reqwest = { version = "0.11", features = ["json"] }
reqwest = { version = "0.11", features = ["json"], default-features = false }
config = "0.13"
simplelog = "0.12.0"
structopt = "0.3.26"

[features]
default = ["use-rustls"]
use-rustls = ["tokio-rustls", "rustls-pemfile"] #, "x509-parser"]
use-native-tls = ["tokio-native-tls"] #, "x509-parser"]
use-rustls = ["tokio-rustls", "rustls-pemfile", "reqwest/rustls-tls"] #, "x509-parser"]
use-native-tls = ["tokio-native-tls", "reqwest/native-tls"] #, "x509-parser"]
websockets = ["tokio-tungstenite", "ws_stream_tungstenite", "websocket-codec"]

[dev-dependencies]
Expand Down

0 comments on commit c93afb0

Please sign in to comment.