Skip to content

Commit c529e4c

Browse files
committed
Re-export core2::io or std::io depending on feature flags
This is useful in bindings as the `lightning::io` module is used in the public interface, but also useful for users who want to refer to the `io` as used in lightning irrespective of the feature flags.
1 parent a534a5e commit c529e4c

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)