Update auto-generated bindings
[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 persist;
25 pub mod wakers;
26 pub mod logger;
27 pub mod config;
28 mod fuzz_wrappers {
29
30 use alloc::str::FromStr;
31 use core::ffi::c_void;
32 use core::convert::Infallible;
33 use bitcoin::hashes::Hash;
34 use crate::c_types::*;
35 #[cfg(feature="no-std")]
36 use alloc::{vec::Vec, boxed::Box};
37
38 }
39 mod ser_macros {
40
41 use alloc::str::FromStr;
42 use core::ffi::c_void;
43 use core::convert::Infallible;
44 use bitcoin::hashes::Hash;
45 use crate::c_types::*;
46 #[cfg(feature="no-std")]
47 use alloc::{vec::Vec, boxed::Box};
48
49 }
50 mod atomic_counter {
51
52 use alloc::str::FromStr;
53 use core::ffi::c_void;
54 use core::convert::Infallible;
55 use bitcoin::hashes::Hash;
56 use crate::c_types::*;
57 #[cfg(feature="no-std")]
58 use alloc::{vec::Vec, boxed::Box};
59
60 }
61 mod byte_utils {
62
63 use alloc::str::FromStr;
64 use core::ffi::c_void;
65 use core::convert::Infallible;
66 use bitcoin::hashes::Hash;
67 use crate::c_types::*;
68 #[cfg(feature="no-std")]
69 use alloc::{vec::Vec, boxed::Box};
70
71 }
72 mod chacha20 {
73
74 use alloc::str::FromStr;
75 use core::ffi::c_void;
76 use core::convert::Infallible;
77 use bitcoin::hashes::Hash;
78 use crate::c_types::*;
79 #[cfg(feature="no-std")]
80 use alloc::{vec::Vec, boxed::Box};
81
82 mod real_chacha {
83
84 use alloc::str::FromStr;
85 use core::ffi::c_void;
86 use core::convert::Infallible;
87 use bitcoin::hashes::Hash;
88 use crate::c_types::*;
89 #[cfg(feature="no-std")]
90 use alloc::{vec::Vec, boxed::Box};
91
92 }
93 }
94 mod fairrwlock {
95
96 use alloc::str::FromStr;
97 use core::ffi::c_void;
98 use core::convert::Infallible;
99 use bitcoin::hashes::Hash;
100 use crate::c_types::*;
101 #[cfg(feature="no-std")]
102 use alloc::{vec::Vec, boxed::Box};
103
104 }
105 mod zbase32 {
106
107 use alloc::str::FromStr;
108 use core::ffi::c_void;
109 use core::convert::Infallible;
110 use bitcoin::hashes::Hash;
111 use crate::c_types::*;
112 #[cfg(feature="no-std")]
113 use alloc::{vec::Vec, boxed::Box};
114
115 }
116 mod poly1305 {
117
118 use alloc::str::FromStr;
119 use core::ffi::c_void;
120 use core::convert::Infallible;
121 use bitcoin::hashes::Hash;
122 use crate::c_types::*;
123 #[cfg(feature="no-std")]
124 use alloc::{vec::Vec, boxed::Box};
125
126 }
127 mod chacha20poly1305rfc {
128
129 use alloc::str::FromStr;
130 use core::ffi::c_void;
131 use core::convert::Infallible;
132 use bitcoin::hashes::Hash;
133 use crate::c_types::*;
134 #[cfg(feature="no-std")]
135 use alloc::{vec::Vec, boxed::Box};
136
137 mod real_chachapoly {
138
139 use alloc::str::FromStr;
140 use core::ffi::c_void;
141 use core::convert::Infallible;
142 use bitcoin::hashes::Hash;
143 use crate::c_types::*;
144 #[cfg(feature="no-std")]
145 use alloc::{vec::Vec, boxed::Box};
146
147 }
148 }
149 mod transaction_utils {
150
151 use alloc::str::FromStr;
152 use core::ffi::c_void;
153 use core::convert::Infallible;
154 use bitcoin::hashes::Hash;
155 use crate::c_types::*;
156 #[cfg(feature="no-std")]
157 use alloc::{vec::Vec, boxed::Box};
158
159 }
160 mod scid_utils {
161
162 use alloc::str::FromStr;
163 use core::ffi::c_void;
164 use core::convert::Infallible;
165 use bitcoin::hashes::Hash;
166 use crate::c_types::*;
167 #[cfg(feature="no-std")]
168 use alloc::{vec::Vec, boxed::Box};
169
170 mod fake_scid {
171
172 use alloc::str::FromStr;
173 use core::ffi::c_void;
174 use core::convert::Infallible;
175 use bitcoin::hashes::Hash;
176 use crate::c_types::*;
177 #[cfg(feature="no-std")]
178 use alloc::{vec::Vec, boxed::Box};
179
180 }
181 }
182 mod time {
183
184 use alloc::str::FromStr;
185 use core::ffi::c_void;
186 use core::convert::Infallible;
187 use bitcoin::hashes::Hash;
188 use crate::c_types::*;
189 #[cfg(feature="no-std")]
190 use alloc::{vec::Vec, boxed::Box};
191
192 }
193 mod macro_logger {
194
195 use alloc::str::FromStr;
196 use core::ffi::c_void;
197 use core::convert::Infallible;
198 use bitcoin::hashes::Hash;
199 use crate::c_types::*;
200 #[cfg(feature="no-std")]
201 use alloc::{vec::Vec, boxed::Box};
202
203 }
204 mod crypto {
205
206 use alloc::str::FromStr;
207 use core::ffi::c_void;
208 use core::convert::Infallible;
209 use bitcoin::hashes::Hash;
210 use crate::c_types::*;
211 #[cfg(feature="no-std")]
212 use alloc::{vec::Vec, boxed::Box};
213
214 }