summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipfs-api-backend-hyper/Cargo.toml6
1 files changed, 6 insertions, 0 deletions
diff --git a/ipfs-api-backend-hyper/Cargo.toml b/ipfs-api-backend-hyper/Cargo.toml
index dad8651..55d50fb 100644
--- a/ipfs-api-backend-hyper/Cargo.toml
+++ b/ipfs-api-backend-hyper/Cargo.toml
@@ -11,6 +11,10 @@ version = "0.1.0"
readme = "../README.md"
license = "MIT OR Apache-2.0"
+[features]
+with-hyper-tls = ["hyper-tls"]
+with-hyper-rustls = ["hyper-rustls"]
+
[dependencies]
async-trait = "0.1"
bytes = "1.0"
@@ -18,6 +22,8 @@ futures = "0.3"
http = "0.2"
hyper = { version = "0.14", features = ["http1", "http2", "client"] }
hyper-multipart-rfc7578 = "0.5"
+hyper-rustls = { version = "0.22", optional = true }
+hyper-tls = { version = "0.5", optional = true }
ipfs-api-prelude = { version = "0.1.0", path = "../ipfs-api-prelude" }
serde = "1.0"
thiserror = "1.0"