diff --git a/Cargo.toml b/Cargo.toml index 9f38f9c728dcb3bf94f7bf3ac9fef9ff8f154971..46277692615bd1c84ce3f930d5856c8baf91bc17 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 aaf82a40fdae6d0b2951ea919113c28f2b25a299..b0334c3e08d230ce06734e7ae42b561cd8dfd32d 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;