X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-c-bindings;a=blobdiff_plain;f=lightning-c-bindings%2Fsrc%2Flightning%2Frouting%2Fmod.rs;h=278665651de0e258d1e06159ed6a8227c889be4e;hp=a06e1d09ad191cadca6da01c118a213372cb96d4;hb=1eaf50a3d9f777b462ff1817678473567a00eb75;hpb=1ea51d14faf91619495778e82bca2e6fad0ae1ae diff --git a/lightning-c-bindings/src/lightning/routing/mod.rs b/lightning-c-bindings/src/lightning/routing/mod.rs index a06e1d0..2786656 100644 --- a/lightning-c-bindings/src/lightning/routing/mod.rs +++ b/lightning-c-bindings/src/lightning/routing/mod.rs @@ -8,9 +8,14 @@ //! Structs and impls for receiving messages about the network and storing the topology live here. -use std::ffi::c_void; +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}; -pub mod router; pub mod network_graph; +pub mod router; +pub mod scoring;