X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=lightning-block-sync%2Fsrc%2Flib.rs;h=8854aa3e8e4bf8186b6cc119451e62ddc6710fae;hb=eb50201ed570343f5ccebf5b6285ee7c7a02cec6;hp=bc937b590716cfdf30843ca46c59deba0717d2fd;hpb=fba204b02ee4faece07a2ddf152f34507773ad4d;p=rust-lightning diff --git a/lightning-block-sync/src/lib.rs b/lightning-block-sync/src/lib.rs index bc937b59..8854aa3e 100644 --- a/lightning-block-sync/src/lib.rs +++ b/lightning-block-sync/src/lib.rs @@ -17,6 +17,8 @@ #![deny(missing_docs)] #![deny(unsafe_code)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + #[cfg(any(feature = "rest-client", feature = "rpc-client"))] pub mod http; @@ -75,12 +77,12 @@ pub trait BlockSource : Sync + Send { } /// Result type for `BlockSource` requests. -type BlockSourceResult = Result; +pub type BlockSourceResult = Result; // TODO: Replace with BlockSourceResult once `async` trait functions are supported. For details, // see: https://areweasyncyet.rs. /// Result type for asynchronous `BlockSource` requests. -type AsyncBlockSourceResult<'a, T> = Pin> + 'a + Send>>; +pub type AsyncBlockSourceResult<'a, T> = Pin> + 'a + Send>>; /// Error type for `BlockSource` requests. ///