We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3efa72e commit b0e2813Copy full SHA for b0e2813
1 file changed
src/lib.rs
@@ -33,11 +33,20 @@
33
//! use std::str::FromStr;
34
//!
35
//! fn main() {
36
+//! # #[cfg(not(feature = "uniffi"))]
37
//! let node = Builder::new()
38
//! .set_network(Network::Testnet)
39
//! .set_esplora_server("https://blockstream.info/testnet/api".to_string())
40
//! .set_gossip_source_rgs("https://rapidsync.lightningdevkit.org/testnet/snapshot".to_string())
41
//! .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
+//! };
50
51
//! node.start().unwrap();
52
0 commit comments