Skip to content

Commit 2c7c1a6

Browse files
committed
Enforce no missing docs in all crates (+ add docs that were missing)
1 parent 18a0967 commit 2c7c1a6

File tree

8 files changed

+24
-0
lines changed

8 files changed

+24
-0
lines changed

background-processor/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
//! Utilities that take care of tasks that (1) need to happen periodically to keep Rust-Lightning
2+
//! running properly, and (2) either can or should be run in the background. See docs for
3+
//! [`BackgroundProcessor`] for more details on the nitty-gritty.
4+
15
#![deny(broken_intra_doc_links)]
6+
#![deny(missing_docs)]
27
#![deny(unsafe_code)]
38

49
#[macro_use] extern crate lightning;

lightning-block-sync/src/http.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//! Simple HTTP implementation which supports both async and traditional execution environments
2+
//! with minimal dependencies. This is used as the basis for REST and RPC clients.
3+
14
use chunked_transfer;
25
use serde_json;
36

lightning-block-sync/src/init.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//! Utilities to assist in the initial sync required to initialize or reload Rust-Lightning objects
2+
//! from disk.
3+
14
use crate::{BlockSource, BlockSourceResult, Cache, ChainNotifier};
25
use crate::poll::{ChainPoller, Validate, ValidatedBlockHeader};
36

lightning-block-sync/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
//! [`BlockSource`]: trait.BlockSource.html
1818
1919
#![deny(broken_intra_doc_links)]
20+
#![deny(missing_docs)]
2021
#![deny(unsafe_code)]
2122

2223
#[cfg(any(feature = "rest-client", feature = "rpc-client"))]

lightning-block-sync/src/poll.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Adapters that make one or more [`BlockSource`]s simpler to poll for new chain tip transitions.
2+
13
use crate::{AsyncBlockSourceResult, BlockHeaderData, BlockSource, BlockSourceError, BlockSourceResult};
24

35
use bitcoin::blockdata::block::Block;

lightning-block-sync/src/rest.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//! Simple REST client implementation which implements [`BlockSource`] against a Bitcoin Core REST
2+
//! endpoint.
3+
14
use crate::{BlockHeaderData, BlockSource, AsyncBlockSourceResult};
25
use crate::http::{BinaryResponse, HttpEndpoint, HttpClient, JsonResponse};
36

lightning-block-sync/src/rpc.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//! Simple RPC client implementation which implements [`BlockSource`] against a Bitcoin Core RPC
2+
//! endpoint.
3+
14
use crate::{BlockHeaderData, BlockSource, AsyncBlockSourceResult};
25
use crate::http::{HttpClient, HttpEndpoint, JsonResponse};
36

lightning-persister/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
//! Utilities that handle persisting Rust-Lightning data to disk via standard filesystem APIs.
2+
13
#![deny(broken_intra_doc_links)]
4+
#![deny(missing_docs)]
25

36
mod util;
47

@@ -74,6 +77,7 @@ impl FilesystemPersister {
7477
}
7578
}
7679

80+
/// Get the directory which was provided when this persister was initialized.
7781
pub fn get_data_dir(&self) -> String {
7882
self.path_to_channel_data.clone()
7983
}

0 commit comments

Comments
 (0)