X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning-c-bindings%2Fsrc%2Flightning%2Futil%2Fmod.rs;h=a8163b6946b24618e080bf718ec0155dc689e8a9;hb=3e46e1794f14640e35f09cc6da4169c152de34ce;hp=7318fb12e207984cd5705e1c9650d90648ad1df7;hpb=11b997c3a0452ea1da5b7b352e7887798105db29;p=ldk-c-bindings diff --git a/lightning-c-bindings/src/lightning/util/mod.rs b/lightning-c-bindings/src/lightning/util/mod.rs index 7318fb1..a8163b6 100644 --- a/lightning-c-bindings/src/lightning/util/mod.rs +++ b/lightning-c-bindings/src/lightning/util/mod.rs @@ -9,6 +9,7 @@ //! Some utility modules live here. See individual sub-modules for more info. use alloc::str::FromStr; +use alloc::string::String; use core::ffi::c_void; use core::convert::Infallible; use bitcoin::hashes::Hash; @@ -17,7 +18,6 @@ use crate::c_types::*; use alloc::{vec::Vec, boxed::Box}; pub mod ser_macros; -pub mod events; pub mod errors; pub mod ser; pub mod message_signing; @@ -31,6 +31,7 @@ pub mod config; mod fuzz_wrappers { use alloc::str::FromStr; +use alloc::string::String; use core::ffi::c_void; use core::convert::Infallible; use bitcoin::hashes::Hash; @@ -39,9 +40,10 @@ use crate::c_types::*; use alloc::{vec::Vec, boxed::Box}; } -mod atomic_counter { +mod base32 { use alloc::str::FromStr; +use alloc::string::String; use core::ffi::c_void; use core::convert::Infallible; use bitcoin::hashes::Hash; @@ -50,9 +52,10 @@ use crate::c_types::*; use alloc::{vec::Vec, boxed::Box}; } -mod byte_utils { +mod atomic_counter { use alloc::str::FromStr; +use alloc::string::String; use core::ffi::c_void; use core::convert::Infallible; use bitcoin::hashes::Hash; @@ -61,9 +64,10 @@ use crate::c_types::*; use alloc::{vec::Vec, boxed::Box}; } -mod chacha20 { +mod byte_utils { use alloc::str::FromStr; +use alloc::string::String; use core::ffi::c_void; use core::convert::Infallible; use bitcoin::hashes::Hash; @@ -71,9 +75,11 @@ use crate::c_types::*; #[cfg(feature="no-std")] use alloc::{vec::Vec, boxed::Box}; -mod real_chacha { +} +mod chacha20 { use alloc::str::FromStr; +use alloc::string::String; use core::ffi::c_void; use core::convert::Infallible; use bitcoin::hashes::Hash; @@ -81,11 +87,10 @@ use crate::c_types::*; #[cfg(feature="no-std")] use alloc::{vec::Vec, boxed::Box}; -} -} -mod zbase32 { +mod real_chacha { use alloc::str::FromStr; +use alloc::string::String; use core::ffi::c_void; use core::convert::Infallible; use bitcoin::hashes::Hash; @@ -93,10 +98,12 @@ use crate::c_types::*; #[cfg(feature="no-std")] use alloc::{vec::Vec, boxed::Box}; +} } mod poly1305 { use alloc::str::FromStr; +use alloc::string::String; use core::ffi::c_void; use core::convert::Infallible; use bitcoin::hashes::Hash; @@ -108,6 +115,7 @@ use alloc::{vec::Vec, boxed::Box}; mod chacha20poly1305rfc { use alloc::str::FromStr; +use alloc::string::String; use core::ffi::c_void; use core::convert::Infallible; use bitcoin::hashes::Hash; @@ -118,6 +126,7 @@ use alloc::{vec::Vec, boxed::Box}; mod real_chachapoly { use alloc::str::FromStr; +use alloc::string::String; use core::ffi::c_void; use core::convert::Infallible; use bitcoin::hashes::Hash; @@ -130,6 +139,7 @@ use alloc::{vec::Vec, boxed::Box}; mod transaction_utils { use alloc::str::FromStr; +use alloc::string::String; use core::ffi::c_void; use core::convert::Infallible; use bitcoin::hashes::Hash; @@ -141,6 +151,7 @@ use alloc::{vec::Vec, boxed::Box}; mod scid_utils { use alloc::str::FromStr; +use alloc::string::String; use core::ffi::c_void; use core::convert::Infallible; use bitcoin::hashes::Hash; @@ -151,6 +162,7 @@ use alloc::{vec::Vec, boxed::Box}; mod fake_scid { use alloc::str::FromStr; +use alloc::string::String; use core::ffi::c_void; use core::convert::Infallible; use bitcoin::hashes::Hash; @@ -163,6 +175,7 @@ use alloc::{vec::Vec, boxed::Box}; mod time { use alloc::str::FromStr; +use alloc::string::String; use core::ffi::c_void; use core::convert::Infallible; use bitcoin::hashes::Hash; @@ -174,6 +187,7 @@ use alloc::{vec::Vec, boxed::Box}; mod macro_logger { use alloc::str::FromStr; +use alloc::string::String; use core::ffi::c_void; use core::convert::Infallible; use bitcoin::hashes::Hash; @@ -185,6 +199,7 @@ use alloc::{vec::Vec, boxed::Box}; mod crypto { use alloc::str::FromStr; +use alloc::string::String; use core::ffi::c_void; use core::convert::Infallible; use bitcoin::hashes::Hash;