File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 24
24
run : cargo build --verbose --color always
25
25
- name : Build with UniFFI support on Rust ${{ matrix.toolchain }}
26
26
run : cargo build --features uniffi --verbose --color always
27
+ - name : Build documentation on Rust ${{ matrix.toolchain }}
28
+ run : |
29
+ cargo doc --release --verbose --color always
30
+ cargo doc --document-private-items --verbose --color always
27
31
- name : Check release build on Rust ${{ matrix.toolchain }}
28
32
run : cargo check --release --verbose --color always
29
33
- name : Check release build with UniFFI support on Rust ${{ matrix.toolchain }}
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ pub(crate) const LATEST_NODE_ANN_BCAST_TIMESTAMP_KEY: &str = "latest_node_ann_bc
54
54
/// Keys and namespaces are required to be valid ASCII strings and the empty namespace (`""`) is
55
55
/// assumed to be valid namespace.
56
56
pub trait KVStore : KVStorePersister {
57
+ /// A reader as returned by [`Self::read`].
57
58
type Reader : Read ;
58
59
/// Returns a [`Read`] for the given `namespace` and `key` from which [`Readable`]s may be
59
60
/// read.
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ use super::KVStore;
31
31
/// [`Builder::set_entropy_bip39_mnemonic`].
32
32
///
33
33
/// [BIP 39]: https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki
34
+ /// [`Node`]: crate::Node
34
35
/// [`Builder::set_entropy_bip39_mnemonic`]: crate::Builder::set_entropy_bip39_mnemonic
35
36
pub fn generate_entropy_mnemonic ( ) -> Mnemonic {
36
37
// bip39::Mnemonic supports 256 bit entropy max
@@ -121,7 +122,7 @@ where
121
122
} )
122
123
}
123
124
124
- /// Read a previously persisted [`Scorer `] from the store.
125
+ /// Read a previously persisted [`ProbabilisticScorer `] from the store.
125
126
pub ( crate ) fn read_scorer <
126
127
K : KVStore + Send + Sync ,
127
128
G : Deref < Target = NetworkGraph < L > > ,
Original file line number Diff line number Diff line change 67
67
//! [`connect_open_channel`]: Node::connect_open_channel
68
68
//! [`send_payment`]: Node::send_payment
69
69
//!
70
-
71
- // We currently disable the missing_docs lint due to incompatibility with the generated Uniffi
72
- // scaffolding.
73
- // TODO: Re-enable after https://github.com/mozilla/uniffi-rs/issues/1502 has been
74
- // addressed.
75
- //#![deny(missing_docs)]
70
+ #![ cfg_attr( not( feature = "uniffi" ) , deny( missing_docs) ) ]
76
71
#![ deny( rustdoc:: broken_intra_doc_links) ]
77
72
#![ deny( rustdoc:: private_intra_doc_links) ]
78
73
#![ allow( bare_trait_objects) ]
You can’t perform that action at this time.
0 commit comments