projects
/
ldk-c-bindings
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not make `Deref<T>` generic params always a `&T` for traits.
[ldk-c-bindings]
/
lightning-c-bindings
/
src
/
lightning
/
routing
/
mod.rs
diff --git
a/lightning-c-bindings/src/lightning/routing/mod.rs
b/lightning-c-bindings/src/lightning/routing/mod.rs
index 40f2cd2123eb8fd8c266df92230b58838cf0d86b..278665651de0e258d1e06159ed6a8227c889be4e 100644
(file)
--- a/
lightning-c-bindings/src/lightning/routing/mod.rs
+++ b/
lightning-c-bindings/src/lightning/routing/mod.rs
@@
-8,11
+8,13
@@
//! Structs and impls for receiving messages about the network and storing the topology live here.
//! Structs and impls for receiving messages about the network and storing the topology live here.
-use
std
::str::FromStr;
-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::*;
use core::convert::Infallible;
use bitcoin::hashes::Hash;
use crate::c_types::*;
+#[cfg(feature="no-std")]
+use alloc::{vec::Vec, boxed::Box};
pub mod network_graph;
pub mod router;
pub mod network_graph;
pub mod router;