projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid an unnecessary unwrap
[rust-lightning]
/
lightning
/
src
/
lib.rs
diff --git
a/lightning/src/lib.rs
b/lightning/src/lib.rs
index ad16914c35c3476992a1e855e7c8385e9811a7ff..cea15b21ad2fba1b6f1937b030d59551bede682c 100644
(file)
--- a/
lightning/src/lib.rs
+++ b/
lightning/src/lib.rs
@@
-54,9
+54,6
@@
#![cfg_attr(all(not(feature = "std"), not(test)), no_std)]
#![cfg_attr(all(not(feature = "std"), not(test)), no_std)]
-#![cfg_attr(all(any(test, feature = "_test_utils"), feature = "_bench_unstable"), feature(test))]
-#[cfg(all(any(test, feature = "_test_utils"), feature = "_bench_unstable"))] extern crate test;
-
#[cfg(not(any(feature = "std", feature = "no-std")))]
compile_error!("at least one of the `std` or `no-std` features must be enabled");
#[cfg(not(any(feature = "std", feature = "no-std")))]
compile_error!("at least one of the `std` or `no-std` features must be enabled");
@@
-74,13
+71,17
@@
extern crate core;
#[cfg(not(feature = "std"))] extern crate core2;
#[cfg(not(feature = "std"))] extern crate core2;
+#[cfg(ldk_bench)] extern crate criterion;
+
#[macro_use]
pub mod util;
pub mod chain;
pub mod ln;
pub mod offers;
pub mod routing;
#[macro_use]
pub mod util;
pub mod chain;
pub mod ln;
pub mod offers;
pub mod routing;
+pub mod sign;
pub mod onion_message;
pub mod onion_message;
+pub mod blinded_path;
pub mod events;
#[cfg(feature = "std")]
pub mod events;
#[cfg(feature = "std")]
@@
-175,7
+176,7
@@
mod prelude {
pub use alloc::string::ToString;
}
pub use alloc::string::ToString;
}
-#[cfg(all(not(
feature = "_bench_unstable"
), feature = "backtrace", feature = "std", test))]
+#[cfg(all(not(
ldk_bench
), feature = "backtrace", feature = "std", test))]
extern crate backtrace;
mod sync;
extern crate backtrace;
mod sync;