X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Flib.rs;h=ad51dbe18b7830507e5dd0a698bb67fc2000d153;hb=d429065d2d01594fc6f38e41028a29bad1fd7c73;hp=160f632415b472238b18f728e43c990fdf002f45;hpb=4a0abd52e7b9aef8957e30157912ef7b86c5dfc9;p=rust-lightning diff --git a/lightning/src/lib.rs b/lightning/src/lib.rs index 160f6324..ad51dbe1 100644 --- a/lightning/src/lib.rs +++ b/lightning/src/lib.rs @@ -94,7 +94,9 @@ pub use std::io; 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 +pub mod io_extras { use core2::io::{self, Read, Write}; /// A writer which will move data into the void. @@ -154,6 +156,8 @@ mod io_extras { } #[cfg(feature = "std")] +#[doc(hidden)] +/// IO utilities public only for use by in-crate macros. These should not be used externally mod io_extras { pub fn read_to_end(mut d: D) -> Result, ::std::io::Error> { let mut buf = Vec::new();