Skip to content

Commit f84ce03

Browse files
authored
Merge pull request #1504 from TheBlueMatt/2022-05-pub-io
Re-export `core2::io` or `std::io` depending on feature flags
2 parents 3246554 + b4a9b96 commit f84ce03

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lightning/src/lib.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,11 @@ pub mod ln;
7878
pub mod routing;
7979

8080
#[cfg(feature = "std")]
81-
use std::io;
81+
/// Re-export of either `core2::io` or `std::io`, depending on the `std` feature flag.
82+
pub use std::io;
8283
#[cfg(not(feature = "std"))]
83-
use core2::io;
84+
/// Re-export of either `core2::io` or `std::io`, depending on the `std` feature flag.
85+
pub use core2::io;
8486

8587
#[cfg(not(feature = "std"))]
8688
mod io_extras {

0 commit comments

Comments
 (0)