From 634c8c7ca99d01555b64615db7c7910108855501 Mon Sep 17 00:00:00 2001 From: fominok Date: Fri, 12 Jul 2024 15:24:56 +0200 Subject: [PATCH 1/3] set grovedbg-types version (#316) --- grovedb/Cargo.toml | 2 +- grovedbg-types/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/grovedb/Cargo.toml b/grovedb/Cargo.toml index 57a27479..b8601b15 100644 --- a/grovedb/Cargo.toml +++ b/grovedb/Cargo.toml @@ -26,7 +26,7 @@ nohash-hasher = { version = "0.2.0", optional = true } indexmap = { version = "2.2.6"} intmap = { version = "2.0.0", optional = true } grovedb-path = { version = "1.0.0-rc.2", path = "../path" } -grovedbg-types = { path = "../grovedbg-types", optional = true } +grovedbg-types = { version = "1.0.0-rc.2", path = "../grovedbg-types", optional = true } tokio = { version = "1.37.0", features = ["rt-multi-thread", "net"], optional = true } axum = { version = "0.7.5", features = ["macros"], optional = true } tower-http = { version = "0.5.2", features = ["fs"], optional = true } diff --git a/grovedbg-types/Cargo.toml b/grovedbg-types/Cargo.toml index 300eb5c7..f5114852 100644 --- a/grovedbg-types/Cargo.toml +++ b/grovedbg-types/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "grovedbg-types" -version = "0.1.0" +version = "1.0.0-rc.2" edition = "2021" [dependencies] From d4e550d8c01b4a2e5b62aa06ba06255f3d989e8e Mon Sep 17 00:00:00 2001 From: fominok Date: Fri, 12 Jul 2024 16:42:48 +0200 Subject: [PATCH 2/3] update grovedbg-types manifest (#317) --- grovedbg-types/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/grovedbg-types/Cargo.toml b/grovedbg-types/Cargo.toml index f5114852..a3a2878e 100644 --- a/grovedbg-types/Cargo.toml +++ b/grovedbg-types/Cargo.toml @@ -2,6 +2,10 @@ name = "grovedbg-types" version = "1.0.0-rc.2" edition = "2021" +description = "Common type definitions for data exchange over GroveDBG protocol" +authors = ["Evgeny Fomin "] +license = "MIT" +repository = "https://github.com/dashpay/grovedb" [dependencies] serde = { version = "1.0.201", features = ["derive"] } From ee8d85ac0fe94266ceaea425c2b1573c7addc372 Mon Sep 17 00:00:00 2001 From: Quantum Explorer Date: Sun, 14 Jul 2024 01:24:59 +0700 Subject: [PATCH 3/3] fix: forgot a ) char in a display method --- grovedb/src/element/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grovedb/src/element/mod.rs b/grovedb/src/element/mod.rs index a6add9e6..ad2540e3 100644 --- a/grovedb/src/element/mod.rs +++ b/grovedb/src/element/mod.rs @@ -121,7 +121,7 @@ impl fmt::Display for Element { Element::SumItem(sum_value, flags) => { write!( f, - "SumItem({}{}", + "SumItem({}{})", sum_value, flags .as_ref() @@ -131,7 +131,7 @@ impl fmt::Display for Element { Element::SumTree(root_key, sum_value, flags) => { write!( f, - "SumTree({}, {}{}", + "SumTree({}, {}{})", root_key.as_ref().map_or("None".to_string(), hex::encode), sum_value, flags