Skip to content
Merged
3 changes: 1 addition & 2 deletions crates/chain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ miniscript = { version = "12.0.0", optional = true, default-features = false }

# Feature dependencies
rusqlite = { version = "0.31.0", features = ["bundled"], optional = true }
serde_json = { version = "1", optional = true }

[dev-dependencies]
rand = "0.8"
Expand All @@ -36,4 +35,4 @@ default = ["std", "miniscript"]
std = ["bitcoin/std", "miniscript?/std", "bdk_core/std"]
serde = ["dep:serde", "bitcoin/serde", "miniscript?/serde", "bdk_core/serde"]
hashbrown = ["bdk_core/hashbrown"]
rusqlite = ["std", "dep:rusqlite", "serde", "serde_json"]
rusqlite = ["std", "dep:rusqlite", "serde"]
24 changes: 0 additions & 24 deletions crates/chain/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,27 +100,3 @@ impl<T> core::ops::Deref for Impl<T> {
&self.0
}
}

/// A wrapper that we use to impl remote traits for types in our crate or dependency crates that impl [`Anchor`].
pub struct AnchorImpl<T>(pub T);

impl<T> AnchorImpl<T> {
/// Returns the inner `T`.
pub fn into_inner(self) -> T {
self.0
}
}

impl<T> From<T> for AnchorImpl<T> {
fn from(value: T) -> Self {
Self(value)
}
}

impl<T> core::ops::Deref for AnchorImpl<T> {
type Target = T;

fn deref(&self) -> &Self::Target {
&self.0
}
}
Loading