From 077471c6c37cf6cb66c96305854506c9d7ed18d3 Mon Sep 17 00:00:00 2001 From: librelois <c@elo.tf> Date: Thu, 22 Apr 2021 17:20:08 +0200 Subject: [PATCH] chore: make duniter-dbs-write-ops optional --- Cargo.toml | 3 ++- src/lib.rs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 9f38f9c..4627769 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,12 +12,13 @@ version = "1.8.1" duniter-bc-reader = { path = "bc-reader" } duniter-conf = { path = "conf" } duniter-dbs = { path = "dbs" } -duniter-dbs-write-ops = { path = "dbs-write-ops" } +duniter-dbs-write-ops = { path = "dbs-write-ops", optional = true } duniter-mempools = { path = "mempools" } duniter-module = { path = "module" } duniter-global = { path = "global" } [features] +bc-writer = ["duniter-dbs-write-ops"] explorer = ["duniter-dbs/explorer"] mem = ["duniter-dbs/mem"] mock = ["duniter-global/mock"] diff --git a/src/lib.rs b/src/lib.rs index aaf82a4..b0334c3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,6 +15,7 @@ pub use duniter_conf as conf; pub use duniter_dbs as dbs; +#[cfg(feature = "bc-writer")] pub use duniter_dbs_write_ops as dbs_write_ops; pub use duniter_global as global; pub use duniter_mempools as mempools; -- GitLab