From 6b12cd5ad2ae7212e2ad3077463cbec453da4774 Mon Sep 17 00:00:00 2001 From: Ferris Tseng Date: Sun, 4 Apr 2021 18:49:05 -0400 Subject: add features to ipfs-api-backend-hyper --- ipfs-api-backend-hyper/Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) 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" -- cgit v1.2.3