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