From 5f6d6b1a4a6f3da9e87f511b3967dc19fe5c4076 Mon Sep 17 00:00:00 2001
From: librelois <c@elo.tf>
Date: Wed, 19 May 2021 23:12:28 +0200
Subject: [PATCH] feat(core): re-expose dubp crates

---
 Cargo.lock |  1 +
 Cargo.toml |  3 ++-
 src/lib.rs | 11 +++++++++++
 3 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/Cargo.lock b/Cargo.lock
index 993815a..57f345f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -826,6 +826,7 @@ dependencies = [
 name = "duniter-core"
 version = "1.8.1"
 dependencies = [
+ "dubp",
  "dubp-wot",
  "duniter-bc-reader",
  "duniter-conf",
diff --git a/Cargo.toml b/Cargo.toml
index a2e1dc5..5a58423 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -9,6 +9,8 @@ repository = "https://git.duniter.org/nodes/rust/duniter-core"
 version = "1.8.1"
 
 [dependencies]
+dubp = { version = "0.55.1", features = ["duniter"] }
+dubp-wot = { path = "dubp-wot" }
 duniter-bc-reader = { path = "bc-reader" }
 duniter-conf = { path = "conf" }
 duniter-dbs = { path = "dbs" }
@@ -16,7 +18,6 @@ duniter-dbs-write-ops = { path = "dbs-write-ops", optional = true }
 duniter-mempools = { path = "mempools" }
 duniter-module = { path = "module" }
 duniter-global = { path = "global" }
-dubp-wot = { path = "dubp-wot" }
 
 [features]
 bc-writer = ["duniter-dbs-write-ops"]
diff --git a/src/lib.rs b/src/lib.rs
index 5e5caa2..d745e6b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -13,6 +13,17 @@
 // You should have received a copy of the GNU Affero General Public License
 // along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
+// Re-export dubp crates
+pub use dubp::bda_types;
+pub use dubp::block;
+pub use dubp::common;
+pub use dubp::crypto;
+pub use dubp::documents;
+pub use dubp::documents_parser;
+pub use dubp::peer;
+pub use dubp::wallet;
+
+// Re-export core crates
 pub use dubp_wot as wot;
 pub use duniter_conf as conf;
 pub use duniter_dbs as dbs;
-- 
GitLab