Skip to content

Commit

Permalink
Cargo: Add rustls
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
  • Loading branch information
patrickelectric committed Jan 20, 2023
1 parent f1027f4 commit fe903df
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ rand = "0.8.3"
url = "2.1.0"
hyper-native-tls = { version = "0.3.0", optional = true }
openssl = { version = "0.10", features = ["vendored"], optional = true }
rustls = { version = "0.20", optional = true }
mime_guess = "2.0"
open = "1"
# Iron crates
Expand All @@ -33,6 +34,6 @@ percent-encoding = "2.1.0"
path-dedot = "1"

[features]
default = ["tls"]
only-openssl = ["tls", "openssl"]
tls = ["hyper-native-tls"]
default = ["native-tls"]
only-openssl = ["native-tls", "openssl"]
native-tls = ["hyper-native-tls"]

0 comments on commit fe903df

Please sign in to comment.