Merge pull request #60 from TheBlueMatt/main
[ldk-c-bindings] / lightning-c-bindings / src / lightning / util / mod.rs
1 // This file is Copyright its original authors, visible in version control
2 // history and in the source files from which this was generated.
3 //
4 // This file is licensed under the license available in the LICENSE or LICENSE.md
5 // file in the root of this repository or, if no such file exists, the same
6 // license as that which applies to the original source files from which this
7 // source was automatically generated.
8
9 //! Some utility modules live here. See individual sub-modules for more info.
10
11 use alloc::str::FromStr;
12 use core::ffi::c_void;
13 use core::convert::Infallible;
14 use bitcoin::hashes::Hash;
15 use crate::c_types::*;
16 #[cfg(feature="no-std")]
17 use alloc::{vec::Vec, boxed::Box};
18
19 pub mod events;
20 pub mod errors;
21 pub mod ser;
22 pub mod message_signing;
23 pub mod invoice;
24 pub mod logger;
25 pub mod config;
26 mod fuzz_wrappers {
27
28 use alloc::str::FromStr;
29 use core::ffi::c_void;
30 use core::convert::Infallible;
31 use bitcoin::hashes::Hash;
32 use crate::c_types::*;
33 #[cfg(feature="no-std")]
34 use alloc::{vec::Vec, boxed::Box};
35
36 }
37 mod ser_macros {
38
39 use alloc::str::FromStr;
40 use core::ffi::c_void;
41 use core::convert::Infallible;
42 use bitcoin::hashes::Hash;
43 use crate::c_types::*;
44 #[cfg(feature="no-std")]
45 use alloc::{vec::Vec, boxed::Box};
46
47 }
48 mod atomic_counter {
49
50 use alloc::str::FromStr;
51 use core::ffi::c_void;
52 use core::convert::Infallible;
53 use bitcoin::hashes::Hash;
54 use crate::c_types::*;
55 #[cfg(feature="no-std")]
56 use alloc::{vec::Vec, boxed::Box};
57
58 }
59 mod byte_utils {
60
61 use alloc::str::FromStr;
62 use core::ffi::c_void;
63 use core::convert::Infallible;
64 use bitcoin::hashes::Hash;
65 use crate::c_types::*;
66 #[cfg(feature="no-std")]
67 use alloc::{vec::Vec, boxed::Box};
68
69 }
70 mod chacha20 {
71
72 use alloc::str::FromStr;
73 use core::ffi::c_void;
74 use core::convert::Infallible;
75 use bitcoin::hashes::Hash;
76 use crate::c_types::*;
77 #[cfg(feature="no-std")]
78 use alloc::{vec::Vec, boxed::Box};
79
80 mod real_chacha {
81
82 use alloc::str::FromStr;
83 use core::ffi::c_void;
84 use core::convert::Infallible;
85 use bitcoin::hashes::Hash;
86 use crate::c_types::*;
87 #[cfg(feature="no-std")]
88 use alloc::{vec::Vec, boxed::Box};
89
90 }
91 }
92 mod zbase32 {
93
94 use alloc::str::FromStr;
95 use core::ffi::c_void;
96 use core::convert::Infallible;
97 use bitcoin::hashes::Hash;
98 use crate::c_types::*;
99 #[cfg(feature="no-std")]
100 use alloc::{vec::Vec, boxed::Box};
101
102 }
103 mod poly1305 {
104
105 use alloc::str::FromStr;
106 use core::ffi::c_void;
107 use core::convert::Infallible;
108 use bitcoin::hashes::Hash;
109 use crate::c_types::*;
110 #[cfg(feature="no-std")]
111 use alloc::{vec::Vec, boxed::Box};
112
113 }
114 mod chacha20poly1305rfc {
115
116 use alloc::str::FromStr;
117 use core::ffi::c_void;
118 use core::convert::Infallible;
119 use bitcoin::hashes::Hash;
120 use crate::c_types::*;
121 #[cfg(feature="no-std")]
122 use alloc::{vec::Vec, boxed::Box};
123
124 mod real_chachapoly {
125
126 use alloc::str::FromStr;
127 use core::ffi::c_void;
128 use core::convert::Infallible;
129 use bitcoin::hashes::Hash;
130 use crate::c_types::*;
131 #[cfg(feature="no-std")]
132 use alloc::{vec::Vec, boxed::Box};
133
134 }
135 }
136 mod transaction_utils {
137
138 use alloc::str::FromStr;
139 use core::ffi::c_void;
140 use core::convert::Infallible;
141 use bitcoin::hashes::Hash;
142 use crate::c_types::*;
143 #[cfg(feature="no-std")]
144 use alloc::{vec::Vec, boxed::Box};
145
146 }
147 mod scid_utils {
148
149 use alloc::str::FromStr;
150 use core::ffi::c_void;
151 use core::convert::Infallible;
152 use bitcoin::hashes::Hash;
153 use crate::c_types::*;
154 #[cfg(feature="no-std")]
155 use alloc::{vec::Vec, boxed::Box};
156
157 mod fake_scid {
158
159 use alloc::str::FromStr;
160 use core::ffi::c_void;
161 use core::convert::Infallible;
162 use bitcoin::hashes::Hash;
163 use crate::c_types::*;
164 #[cfg(feature="no-std")]
165 use alloc::{vec::Vec, boxed::Box};
166
167 }
168 }
169 mod macro_logger {
170
171 use alloc::str::FromStr;
172 use core::ffi::c_void;
173 use core::convert::Infallible;
174 use bitcoin::hashes::Hash;
175 use crate::c_types::*;
176 #[cfg(feature="no-std")]
177 use alloc::{vec::Vec, boxed::Box};
178
179 }
180 mod crypto {
181
182 use alloc::str::FromStr;
183 use core::ffi::c_void;
184 use core::convert::Infallible;
185 use bitcoin::hashes::Hash;
186 use crate::c_types::*;
187 #[cfg(feature="no-std")]
188 use alloc::{vec::Vec, boxed::Box};
189
190 }