Skip to content

Commit 07ecfbb

Browse files
committed
refactor: make clarity compile with no-default-features
1 parent a3a55ce commit 07ecfbb

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

clarity/src/vm/database/clarity_store.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ use stacks_common::util::hash::{hex_bytes, to_hex, Sha512Trunc256Sum};
2121

2222
use crate::vm::analysis::AnalysisDatabase;
2323
use crate::vm::contexts::GlobalContext;
24-
#[cfg(feature = "rusqlite")]
2524
use crate::vm::database::{
2625
ClarityDatabase, ClarityDeserializable, ClaritySerializable, NULL_BURN_STATE_DB, NULL_HEADER_DB,
2726
};

stacks-common/src/deps_common/bitcoin/util/hash.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ impl_array_newtype!(Ripemd160Hash, u8, 20);
5050
/// A Bitcoin hash160, 20-bytes, computed from x as RIPEMD160(SHA256(x))
5151
pub struct Hash160([u8; 20]);
5252
impl_array_newtype!(Hash160, u8, 20);
53-
impl_byte_array_rusqlite_only!(Hash160);
5453

5554
impl Hash160 {
5655
/// Convert the Hash160 inner bytes to a non-prefixed hex string

stacks-common/src/util/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub mod log;
1919
#[macro_use]
2020
pub mod macros;
2121
pub mod chunked_encoding;
22+
#[cfg(feature = "rusqlite")]
2223
pub mod db;
2324
pub mod hash;
2425
pub mod pair;

0 commit comments

Comments
 (0)