projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use HashMap::entry instead of HashMap::insert
[rust-lightning]
/
lightning
/
src
/
lib.rs
diff --git
a/lightning/src/lib.rs
b/lightning/src/lib.rs
index 3b5a4ebfbf18171c9fc95b5d201693a171858b68..5274ea0bf309ce2d0709936d496d8a098b561ebc 100644
(file)
--- a/
lightning/src/lib.rs
+++ b/
lightning/src/lib.rs
@@
-61,7
+61,7
@@
compile_error!("Tests will always fail with cfg=fuzzing");
#[macro_use]
extern crate alloc;
#[macro_use]
extern crate alloc;
-extern crate bitcoin;
+
pub
extern crate bitcoin;
#[cfg(any(test, feature = "std"))]
extern crate core;
#[cfg(any(test, feature = "std"))]
extern crate core;
@@
-94,7
+94,11
@@
pub use std::io;
pub use core2::io;
#[cfg(not(feature = "std"))]
pub use core2::io;
#[cfg(not(feature = "std"))]
-mod io_extras {
+#[doc(hidden)]
+/// IO utilities public only for use by in-crate macros. These should not be used externally
+///
+/// This is not exported to bindings users as it is not intended for public consumption.
+pub mod io_extras {
use core2::io::{self, Read, Write};
/// A writer which will move data into the void.
use core2::io::{self, Read, Write};
/// A writer which will move data into the void.
@@
-154,6
+158,10
@@
mod io_extras {
}
#[cfg(feature = "std")]
}
#[cfg(feature = "std")]
+#[doc(hidden)]
+/// IO utilities public only for use by in-crate macros. These should not be used externally
+///
+/// This is not exported to bindings users as it is not intended for public consumption.
mod io_extras {
pub fn read_to_end<D: ::std::io::Read>(mut d: D) -> Result<Vec<u8>, ::std::io::Error> {
let mut buf = Vec::new();
mod io_extras {
pub fn read_to_end<D: ::std::io::Read>(mut d: D) -> Result<Vec<u8>, ::std::io::Error> {
let mut buf = Vec::new();