From 79f8334e647b19348ab5ade373178c3479590bca Mon Sep 17 00:00:00 2001 From: Quantum Explorer Date: Wed, 27 Sep 2023 13:13:30 +0700 Subject: [PATCH] fixed proof feature --- grovedb/src/element/helpers.rs | 1 + grovedb/src/lib.rs | 1 + merk/src/proofs/query/mod.rs | 1 + merk/src/tree/mod.rs | 1 + 4 files changed, 4 insertions(+) diff --git a/grovedb/src/element/helpers.rs b/grovedb/src/element/helpers.rs index 85ce8f4e..91d57fe3 100644 --- a/grovedb/src/element/helpers.rs +++ b/grovedb/src/element/helpers.rs @@ -29,6 +29,7 @@ //! Helpers //! Implements helper functions in Element +#[cfg(feature = "full")] use grovedb_merk::tree::kv::{ ValueDefinedCostType, ValueDefinedCostType::{LayeredValueDefinedCost, SpecializedValueDefinedCost}, diff --git a/grovedb/src/lib.rs b/grovedb/src/lib.rs index 30ca2e91..8868b598 100644 --- a/grovedb/src/lib.rs +++ b/grovedb/src/lib.rs @@ -193,6 +193,7 @@ pub use grovedb_merk::estimated_costs::{ pub use grovedb_merk::proofs::query::query_item::QueryItem; #[cfg(any(feature = "full", feature = "verify"))] pub use grovedb_merk::proofs::Query; +#[cfg(feature = "full")] use grovedb_merk::tree::kv::ValueDefinedCostType; #[cfg(feature = "full")] use grovedb_merk::{ diff --git a/merk/src/proofs/query/mod.rs b/merk/src/proofs/query/mod.rs index 40aea905..7a122f23 100644 --- a/merk/src/proofs/query/mod.rs +++ b/merk/src/proofs/query/mod.rs @@ -67,6 +67,7 @@ use {super::Op, std::collections::LinkedList}; use super::Node; #[cfg(any(feature = "full", feature = "verify"))] use crate::error::Error; +#[cfg(feature = "full")] use crate::tree::kv::ValueDefinedCostType; #[cfg(feature = "full")] use crate::tree::{Fetch, Link, RefWalker}; diff --git a/merk/src/tree/mod.rs b/merk/src/tree/mod.rs index c57d3644..b257d8db 100644 --- a/merk/src/tree/mod.rs +++ b/merk/src/tree/mod.rs @@ -92,6 +92,7 @@ pub use walk::{Fetch, RefWalker, Walker}; #[cfg(feature = "full")] use crate::tree::kv::ValueDefinedCostType; +#[cfg(feature = "full")] use crate::tree::kv::ValueDefinedCostType::{LayeredValueDefinedCost, SpecializedValueDefinedCost}; #[cfg(feature = "full")] use crate::{error::Error, Error::Overflow};