a8163b6946b24618e080bf718ec0155dc689e8a9
[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 alloc::string::String;
13 use core::ffi::c_void;
14 use core::convert::Infallible;
15 use bitcoin::hashes::Hash;
16 use crate::c_types::*;
17 #[cfg(feature="no-std")]
18 use alloc::{vec::Vec, boxed::Box};
19
20 pub mod ser_macros;
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 alloc::string::String;
35 use core::ffi::c_void;
36 use core::convert::Infallible;
37 use bitcoin::hashes::Hash;
38 use crate::c_types::*;
39 #[cfg(feature="no-std")]
40 use alloc::{vec::Vec, boxed::Box};
41
42 }
43 mod base32 {
44
45 use alloc::str::FromStr;
46 use alloc::string::String;
47 use core::ffi::c_void;
48 use core::convert::Infallible;
49 use bitcoin::hashes::Hash;
50 use crate::c_types::*;
51 #[cfg(feature="no-std")]
52 use alloc::{vec::Vec, boxed::Box};
53
54 }
55 mod atomic_counter {
56
57 use alloc::str::FromStr;
58 use alloc::string::String;
59 use core::ffi::c_void;
60 use core::convert::Infallible;
61 use bitcoin::hashes::Hash;
62 use crate::c_types::*;
63 #[cfg(feature="no-std")]
64 use alloc::{vec::Vec, boxed::Box};
65
66 }
67 mod byte_utils {
68
69 use alloc::str::FromStr;
70 use alloc::string::String;
71 use core::ffi::c_void;
72 use core::convert::Infallible;
73 use bitcoin::hashes::Hash;
74 use crate::c_types::*;
75 #[cfg(feature="no-std")]
76 use alloc::{vec::Vec, boxed::Box};
77
78 }
79 mod chacha20 {
80
81 use alloc::str::FromStr;
82 use alloc::string::String;
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 mod real_chacha {
91
92 use alloc::str::FromStr;
93 use alloc::string::String;
94 use core::ffi::c_void;
95 use core::convert::Infallible;
96 use bitcoin::hashes::Hash;
97 use crate::c_types::*;
98 #[cfg(feature="no-std")]
99 use alloc::{vec::Vec, boxed::Box};
100
101 }
102 }
103 mod poly1305 {
104
105 use alloc::str::FromStr;
106 use alloc::string::String;
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 chacha20poly1305rfc {
116
117 use alloc::str::FromStr;
118 use alloc::string::String;
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 mod real_chachapoly {
127
128 use alloc::str::FromStr;
129 use alloc::string::String;
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 }
138 }
139 mod transaction_utils {
140
141 use alloc::str::FromStr;
142 use alloc::string::String;
143 use core::ffi::c_void;
144 use core::convert::Infallible;
145 use bitcoin::hashes::Hash;
146 use crate::c_types::*;
147 #[cfg(feature="no-std")]
148 use alloc::{vec::Vec, boxed::Box};
149
150 }
151 mod scid_utils {
152
153 use alloc::str::FromStr;
154 use alloc::string::String;
155 use core::ffi::c_void;
156 use core::convert::Infallible;
157 use bitcoin::hashes::Hash;
158 use crate::c_types::*;
159 #[cfg(feature="no-std")]
160 use alloc::{vec::Vec, boxed::Box};
161
162 mod fake_scid {
163
164 use alloc::str::FromStr;
165 use alloc::string::String;
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 }
175 mod time {
176
177 use alloc::str::FromStr;
178 use alloc::string::String;
179 use core::ffi::c_void;
180 use core::convert::Infallible;
181 use bitcoin::hashes::Hash;
182 use crate::c_types::*;
183 #[cfg(feature="no-std")]
184 use alloc::{vec::Vec, boxed::Box};
185
186 }
187 mod macro_logger {
188
189 use alloc::str::FromStr;
190 use alloc::string::String;
191 use core::ffi::c_void;
192 use core::convert::Infallible;
193 use bitcoin::hashes::Hash;
194 use crate::c_types::*;
195 #[cfg(feature="no-std")]
196 use alloc::{vec::Vec, boxed::Box};
197
198 }
199 mod crypto {
200
201 use alloc::str::FromStr;
202 use alloc::string::String;
203 use core::ffi::c_void;
204 use core::convert::Infallible;
205 use bitcoin::hashes::Hash;
206 use crate::c_types::*;
207 #[cfg(feature="no-std")]
208 use alloc::{vec::Vec, boxed::Box};
209
210 }