projects
/
ldk-c-bindings
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update auto-generated bindings
[ldk-c-bindings]
/
lightning-c-bindings
/
src
/
lightning
/
util
/
mod.rs
diff --git
a/lightning-c-bindings/src/lightning/util/mod.rs
b/lightning-c-bindings/src/lightning/util/mod.rs
index 45d754bd1fb7354c63f60c11f0d31988ae248def..c80ae77b2b4b615784a3b1857c65ea9f136c659c 100644
(file)
--- a/
lightning-c-bindings/src/lightning/util/mod.rs
+++ b/
lightning-c-bindings/src/lightning/util/mod.rs
@@
-8,11
+8,13
@@
//! Some utility modules live here. See individual sub-modules for more info.
//! Some utility modules live here. See individual sub-modules for more info.
-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 events;
pub mod errors;
pub mod events;
pub mod errors;
@@
-22,118
+24,144
@@
pub mod logger;
pub mod config;
mod fuzz_wrappers {
pub mod config;
mod fuzz_wrappers {
-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};
}
mod ser_macros {
}
mod ser_macros {
-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};
}
mod atomic_counter {
}
mod atomic_counter {
-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};
}
mod byte_utils {
}
mod byte_utils {
-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};
}
mod chacha20 {
}
mod chacha20 {
-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};
mod real_chacha {
mod real_chacha {
-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};
}
}
mod zbase32 {
}
}
mod zbase32 {
-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};
}
mod poly1305 {
}
mod poly1305 {
-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};
}
mod chacha20poly1305rfc {
}
mod chacha20poly1305rfc {
-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};
mod real_chachapoly {
mod real_chachapoly {
-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};
}
}
mod transaction_utils {
}
}
mod transaction_utils {
-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};
}
mod scid_utils {
}
mod scid_utils {
-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};
}
mod macro_logger {
}
mod macro_logger {
-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};
}
}