summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;