summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerris Tseng <ferristseng@fastmail.fm>2021-02-22 23:41:06 -0500
committerFerris Tseng <ferristseng@fastmail.fm>2021-02-22 23:41:06 -0500
commit8ce8c1c6aa8dce081debf2fd0d2baf353238fea7 (patch)
tree2e0de1704f02f78e9c5e1d637723e9286666e210
parentb75c0ac5a35f87a4222aeddc11d710aa01f859e0 (diff)
add builder feature
-rw-r--r--ipfs-api-prelude/Cargo.toml4
-rw-r--r--ipfs-api-prelude/src/lib.rs4
2 files changed, 8 insertions, 0 deletions
diff --git a/ipfs-api-prelude/Cargo.toml b/ipfs-api-prelude/Cargo.toml
index 1a0a7b7..4d2b00a 100644
--- a/ipfs-api-prelude/Cargo.toml
+++ b/ipfs-api-prelude/Cargo.toml
@@ -11,6 +11,9 @@ version = "0.1.0"
readme = "../README.md"
license = "MIT OR Apache-2.0"
+[features]
+with-builder = ["typed-builder"]
+
[dependencies]
async-trait = "0.1"
bytes = "1.0"
@@ -26,4 +29,5 @@ thiserror = "1.0"
tokio = "1.2"
tokio-util = { version = "0.6", features = ["codec"] }
tracing = "0.1"
+typed-builder = { version = "0.9", optional = true }
walkdir = "2.3"
diff --git a/ipfs-api-prelude/src/lib.rs b/ipfs-api-prelude/src/lib.rs
index 8455db7..e2d0c7d 100644
--- a/ipfs-api-prelude/src/lib.rs
+++ b/ipfs-api-prelude/src/lib.rs
@@ -6,6 +6,10 @@
// copied, modified, or distributed except according to those terms.
//
+#[cfg(feature = "with-builder")]
+#[macro_use]
+extern crate typed_builder;
+
extern crate serde;
mod api;