diff options
author | Ferris Tseng <ferristseng@fastmail.fm> | 2021-04-04 18:49:05 -0400 |
---|---|---|
committer | Ferris Tseng <ferristseng@fastmail.fm> | 2021-04-04 18:49:05 -0400 |
commit | 6b12cd5ad2ae7212e2ad3077463cbec453da4774 (patch) | |
tree | 23e5e974232a132051fd8bf8e7ca0aa91ee88674 | |
parent | ade2a19df4285c2bfd8924efed97895fc63175d8 (diff) |
add features to ipfs-api-backend-hyper
-rw-r--r-- | ipfs-api-backend-hyper/Cargo.toml | 6 |
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" |