]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Update `lightning-transaction-sync` to use macros crate
authorElias Rohrer <dev@tnull.de>
Sat, 21 Sep 2024 05:21:39 +0000 (14:21 +0900)
committerElias Rohrer <dev@tnull.de>
Thu, 17 Oct 2024 14:26:42 +0000 (16:26 +0200)
lightning-transaction-sync/Cargo.toml
lightning-transaction-sync/src/esplora.rs
lightning-transaction-sync/src/lib.rs
lightning-transaction-sync/tests/integration_tests.rs

index 34105ea3e901cdab92d025b5efd63f07bc7c2f45..34ddfec6f0f0a41051fc89614b849de8d7d14b5b 100644 (file)
@@ -24,8 +24,8 @@ async-interface = []
 
 [dependencies]
 lightning = { version = "0.0.124", path = "../lightning", default-features = false, features = ["std"] }
+lightning-macros = { version = "0.1", path = "../lightning-macros", default-features = false }
 bitcoin = { version = "0.32.2", default-features = false }
-bdk-macros = "0.6"
 futures = { version = "0.3", optional = true }
 esplora-client = { version = "0.9", default-features = false, optional = true }
 electrum-client = { version = "0.21.0", optional = true }
index 8b8b39cfb4fd65f83ab6b7d90ba0e816536a4df0..a191260bc01a2ea882578aa44561ede9f1c8ebcb 100644 (file)
@@ -13,6 +13,8 @@ use lightning::chain::{Confirm, Filter};
 use lightning::util::logger::Logger;
 use lightning::{log_debug, log_error, log_trace};
 
+use lightning_macros::{maybe_async, maybe_await};
+
 use bitcoin::{BlockHash, Script, Txid};
 
 #[cfg(not(feature = "async-interface"))]
index 9c6831cef5db37afcc870f8a7e3172162995a845..19ebe007ec2f6fcb6821ce62751cc09b60c47399 100644 (file)
 #![deny(unsafe_code)]
 #![cfg_attr(docsrs, feature(doc_auto_cfg))]
 
-#[cfg(any(feature = "esplora-blocking", feature = "esplora-async"))]
-#[macro_use]
-extern crate bdk_macros;
-
 #[cfg(any(feature = "esplora-blocking", feature = "esplora-async"))]
 mod esplora;
 
index c887b2be0bf18a1e9a7494da3d568f2ddbcfdb3e..0a6f40b0972d0f1f44663affc7c7fb062ae9be13 100644 (file)
@@ -11,7 +11,8 @@ use lightning_transaction_sync::ElectrumSyncClient;
 #[cfg(any(feature = "esplora-blocking", feature = "esplora-async"))]
 use lightning_transaction_sync::EsploraSyncClient;
 
-use bdk_macros::maybe_await;
+use lightning_macros::maybe_await;
+
 use bitcoin::block::Header;
 use bitcoin::constants::genesis_block;
 use bitcoin::network::Network;