File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 14
14
//! You can create a blocking client as follows:
15
15
//!
16
16
//! ```no_run
17
+ //! # #[cfg(feature = "blocking")]
18
+ //! # {
17
19
//! use esplora_client::Builder;
18
20
//! let builder = Builder::new("https://blockstream.info/testnet/api");
19
21
//! let blocking_client = builder.build_blocking();
20
22
//! # Ok::<(), esplora_client::Error>(());
23
+ //! # }
21
24
//! ```
22
25
//!
23
26
//! Here is an example of how to create an asynchronous client.
24
27
//!
25
28
//! ```no_run
29
+ //! # #[cfg(any(feature = "async", feature = "async-https"))]
30
+ //! # {
26
31
//! use esplora_client::Builder;
27
32
//! let builder = Builder::new("https://blockstream.info/testnet/api");
28
33
//! let async_client = builder.build_async();
29
34
//! # Ok::<(), esplora_client::Error>(());
35
+ //! # }
30
36
//! ```
31
37
//!
32
38
//! ## Features
You can’t perform that action at this time.
0 commit comments