Update auto-generated bindings
[ldk-c-bindings] / lightning-c-bindings / src / lightning / mod.rs
index 659087a9857627c3941c9ecc2296dac26748c3c7..7fbf9350c09f45cf5598f37cdb3e5da9de4ede56 100644 (file)
 //! generated/etc. This makes it a good candidate for tight integration into an existing wallet
 //! instead of having a rather-separate lightning appendage to a wallet.
 
-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::*;
+#[cfg(feature="no-std")]
+use alloc::{vec::Vec, boxed::Box};
 
 pub mod util;
 pub mod chain;
@@ -28,10 +30,12 @@ pub mod ln;
 pub mod routing;
 mod prelude {
 
-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::*;
+#[cfg(feature="no-std")]
+use alloc::{vec::Vec, boxed::Box};
 
 }