1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#![recursion_limit = "256"]
#![deny(
non_upper_case_globals,
non_camel_case_types,
non_snake_case,
unused_mut,
dead_code,
)]
#[macro_use]
extern crate amplify;
#[macro_use]
extern crate strict_encoding;
#[cfg(feature = "serde")]
#[allow(unused_imports)]
#[macro_use]
extern crate serde_crate as serde;
#[cfg(feature = "serde")]
#[cfg_attr(feature = "shell", macro_use)]
extern crate serde_with;
#[cfg(feature = "clap")]
#[macro_use]
extern crate clap;
#[cfg_attr(feature = "_rpc", macro_use)]
extern crate log;
#[cfg(feature = "zmq")]
extern crate zmq2 as zmq;
#[cfg(feature = "cli")]
pub mod cli;
pub mod error;
#[cfg(feature = "_rpc")]
pub mod esb;
#[cfg(feature = "shell")]
mod format;
#[cfg(feature = "node")]
mod launcher;
#[cfg(feature = "node")]
pub mod node;
#[cfg(feature = "peer")]
pub mod peer;
#[cfg(feature = "_rpc")]
pub mod rpc;
#[cfg(feature = "shell")]
pub mod shell;
pub mod util;
#[cfg(feature = "zmq")]
use once_cell::sync::Lazy;
#[cfg(feature = "shell")]
pub use crate::format::{BinaryFormat, FileFormat, FormatParseError, StructuredFormat};
#[cfg(feature = "node")]
pub use crate::launcher::{DaemonHandle, Launcher, LauncherError};
#[cfg(feature = "zmq")]
pub static ZMQ_CONTEXT: Lazy<zmq::Context> = Lazy::new(zmq::Context::new);