summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerris Tseng <ferristseng@fastmail.fm>2020-07-11 14:11:18 -0400
committerFerris Tseng <ferristseng@fastmail.fm>2020-07-11 14:11:18 -0400
commitdf8a3aadc8281c6cbbbe5a30a2dee6226d21384c (patch)
tree2e666e4e1b7c6302536924c0fa23c1bbd7cb5b79
parent96097c501be6ab10cc6ca1bab9209041d4bdf1e8 (diff)
add typed-builder as a dependency behind a feature flag
-rw-r--r--ipfs-api/Cargo.toml3
-rw-r--r--ipfs-api/src/lib.rs4
2 files changed, 6 insertions, 1 deletions
diff --git a/ipfs-api/Cargo.toml b/ipfs-api/Cargo.toml
index 38b19be..9f2ca23 100644
--- a/ipfs-api/Cargo.toml
+++ b/ipfs-api/Cargo.toml
@@ -17,13 +17,13 @@ travis-ci = { repository = "ferristseng/rust-ipfs-api" }
[features]
default = ["hyper", "hyper-multipart-rfc7578", "hyper-tls", "failure"]
actix = ["actix-http", "actix-multipart-rfc7578", "awc", "derive_more"]
+builder = ["typed-builder"]
[dependencies]
actix-http = { version = "1.0", optional = true }
actix-multipart-rfc7578 = { version = "0.3.0-rc", optional = true }
awc = { version = "1.0", optional = true }
bytes = "0.5"
-derive_builder = "0.9"
derive_more = { version = "0.99", optional = true }
failure = { version = "0.1.6", optional = true }
futures = "0.3"
@@ -39,6 +39,7 @@ tokio-util = { version = "0.2", features = ["codec"] }
walkdir = "2.2"
dirs = "2.0"
parity-multiaddr = "0.7.3"
+typed-builder = { version = "0.6", optional = true }
[dev-dependencies]
actix-http = "1.0"
diff --git a/ipfs-api/src/lib.rs b/ipfs-api/src/lib.rs
index 11d5be5..6692649 100644
--- a/ipfs-api/src/lib.rs
+++ b/ipfs-api/src/lib.rs
@@ -154,6 +154,10 @@ extern crate failure;
extern crate serde;
+#[cfg(feature = "builder")]
+#[macro_use]
+extern crate typed_builder;
+
pub use crate::client::{IpfsClient, TryFromUri};
pub use crate::request::{KeyType, Logger, LoggingLevel, ObjectTemplate};