X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning-transaction-sync%2Fsrc%2Flib.rs;h=96e0c0dfe9c4875136e13670548a9dbd9745a7a6;hb=85a82045fe8191535505a31e4a3dd749ae61dbaa;hp=05b71d21bb5faaa05d5b0cebccb252b69e9e8db0;hpb=6aa1cf9d9f50648b4d3f8534884cd1e683f6f65b;p=rust-lightning diff --git a/lightning-transaction-sync/src/lib.rs b/lightning-transaction-sync/src/lib.rs index 05b71d21..96e0c0df 100644 --- a/lightning-transaction-sync/src/lib.rs +++ b/lightning-transaction-sync/src/lib.rs @@ -13,7 +13,8 @@ //! //! ## Version Compatibility //! -//! Currently this crate is compatible with nodes that were created with LDK version 0.0.113 and above. +//! Currently this crate is compatible with LDK version 0.0.114 and above using channels which were +//! created on LDK version 0.0.113 and above. //! //! ## Usage Example: //! @@ -57,13 +58,10 @@ //! [`ChainMonitor`]: lightning::chain::chainmonitor::ChainMonitor //! [`ChannelManager`]: lightning::ln::channelmanager::ChannelManager -// Prefix these with `rustdoc::` when we update our MSRV to be >= 1.52 to remove warnings. -#![deny(broken_intra_doc_links)] -#![deny(private_intra_doc_links)] - +#![deny(rustdoc::broken_intra_doc_links)] +#![deny(rustdoc::private_intra_doc_links)] #![deny(missing_docs)] #![deny(unsafe_code)] - #![cfg_attr(docsrs, feature(doc_auto_cfg))] #[cfg(any(feature = "esplora-blocking", feature = "esplora-async"))] @@ -73,11 +71,17 @@ extern crate bdk_macros; #[cfg(any(feature = "esplora-blocking", feature = "esplora-async"))] mod esplora; -#[cfg(any(feature = "esplora-blocking", feature = "esplora-async"))] -mod common; +#[cfg(any(feature = "electrum"))] +mod electrum; +#[cfg(any(feature = "esplora-blocking", feature = "esplora-async", feature = "electrum"))] +mod common; +#[cfg(any(feature = "esplora-blocking", feature = "esplora-async", feature = "electrum"))] mod error; +#[cfg(any(feature = "esplora-blocking", feature = "esplora-async", feature = "electrum"))] pub use error::TxSyncError; +#[cfg(feature = "electrum")] +pub use electrum::ElectrumSyncClient; #[cfg(any(feature = "esplora-blocking", feature = "esplora-async"))] pub use esplora::EsploraSyncClient;