Skip to content

Commit b0e2813

Browse files
committed
f Doc test
1 parent 3efa72e commit b0e2813

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,20 @@
3333
//! use std::str::FromStr;
3434
//!
3535
//! fn main() {
36+
//! # #[cfg(not(feature = "uniffi"))]
3637
//! let node = Builder::new()
3738
//! .set_network(Network::Testnet)
3839
//! .set_esplora_server("https://blockstream.info/testnet/api".to_string())
3940
//! .set_gossip_source_rgs("https://rapidsync.lightningdevkit.org/testnet/snapshot".to_string())
4041
//! .build();
42+
//! # #[cfg(feature = "uniffi")]
43+
//! let node = {
44+
//! let builder = Builder::new();
45+
//! builder.set_network(Network::Testnet);
46+
//! builder.set_esplora_server("https://blockstream.info/testnet/api".to_string());
47+
//! builder.set_gossip_source_rgs("https://rapidsync.lightningdevkit.org/testnet/snapshot".to_string());
48+
//! builder.build()
49+
//! };
4150
//!
4251
//! node.start().unwrap();
4352
//!

0 commit comments

Comments
 (0)