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