X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning-c-bindings%2Fsrc%2Flightning%2Fmod.rs;h=20cee4b2d2db1444b5675d1b759e8eb83b4f432b;hb=82601052fe2cac04a6249f5930495e987923303b;hp=240ef3f48ba40726749d6ad88d9ba34067e6ff86;hpb=2f70a371708dbfde3fa6abfcc0315736d2795a01;p=ldk-c-bindings diff --git a/lightning-c-bindings/src/lightning/mod.rs b/lightning-c-bindings/src/lightning/mod.rs index 240ef3f..20cee4b 100644 --- a/lightning-c-bindings/src/lightning/mod.rs +++ b/lightning-c-bindings/src/lightning/mod.rs @@ -46,41 +46,12 @@ use alloc::{vec::Vec, boxed::Box}; pub mod util; pub mod chain; pub mod ln; +pub mod offers; pub mod routing; pub mod onion_message; -mod offers { - -use alloc::str::FromStr; -use core::ffi::c_void; -use core::convert::Infallible; -use bitcoin::hashes::Hash; -use crate::c_types::*; -#[cfg(feature="no-std")] -use alloc::{vec::Vec, boxed::Box}; - -mod invoice_request { - -use alloc::str::FromStr; -use core::ffi::c_void; -use core::convert::Infallible; -use bitcoin::hashes::Hash; -use crate::c_types::*; -#[cfg(feature="no-std")] -use alloc::{vec::Vec, boxed::Box}; - -} -mod merkle { - -use alloc::str::FromStr; -use core::ffi::c_void; -use core::convert::Infallible; -use bitcoin::hashes::Hash; -use crate::c_types::*; -#[cfg(feature="no-std")] -use alloc::{vec::Vec, boxed::Box}; - -} -mod offer { +pub mod blinded_path; +pub mod events; +mod io_extras { use alloc::str::FromStr; use core::ffi::c_void; @@ -91,7 +62,7 @@ use crate::c_types::*; use alloc::{vec::Vec, boxed::Box}; } -mod parse { +mod prelude { use alloc::str::FromStr; use core::ffi::c_void; @@ -102,7 +73,7 @@ use crate::c_types::*; use alloc::{vec::Vec, boxed::Box}; } -mod payer { +mod sync { use alloc::str::FromStr; use core::ffi::c_void; @@ -112,9 +83,7 @@ use crate::c_types::*; #[cfg(feature="no-std")] use alloc::{vec::Vec, boxed::Box}; -} -} -mod io_extras { +mod fairrwlock { use alloc::str::FromStr; use core::ffi::c_void; @@ -125,7 +94,7 @@ use crate::c_types::*; use alloc::{vec::Vec, boxed::Box}; } -mod prelude { +mod ext_impl { use alloc::str::FromStr; use core::ffi::c_void; @@ -136,14 +105,4 @@ use crate::c_types::*; use alloc::{vec::Vec, boxed::Box}; } -mod sync { - -use alloc::str::FromStr; -use core::ffi::c_void; -use core::convert::Infallible; -use bitcoin::hashes::Hash; -use crate::c_types::*; -#[cfg(feature="no-std")] -use alloc::{vec::Vec, boxed::Box}; - }