projects
/
ldk-c-bindings
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #54 from TheBlueMatt/main
[ldk-c-bindings]
/
lightning-c-bindings
/
src
/
lightning
/
mod.rs
diff --git
a/lightning-c-bindings/src/lightning/mod.rs
b/lightning-c-bindings/src/lightning/mod.rs
index 6244aff14c61592a2ec6087a16de09d2aeebfc5b..7fbf9350c09f45cf5598f37cdb3e5da9de4ede56 100644
(file)
--- a/
lightning-c-bindings/src/lightning/mod.rs
+++ b/
lightning-c-bindings/src/lightning/mod.rs
@@
-6,6
+6,7
@@
// license as that which applies to the original source files from which this
// source was automatically generated.
// license as that which applies to the original source files from which this
// source was automatically generated.
+//!lightning
//! Rust-Lightning, not Rusty's Lightning!
//!
//! A full-featured but also flexible lightning implementation, in library form. This allows the
//! Rust-Lightning, not Rusty's Lightning!
//!
//! A full-featured but also flexible lightning implementation, in library form. This allows the
@@
-15,11
+16,26
@@
//! 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.
//! 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::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 bitcoin::hashes::Hash;
use crate::c_types::*;
+#[cfg(feature="no-std")]
+use alloc::{vec::Vec, boxed::Box};
pub mod util;
pub mod chain;
pub mod ln;
pub mod routing;
pub mod util;
pub mod chain;
pub mod ln;
pub mod routing;
+mod prelude {
+
+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};
+
+}