-
Notifications
You must be signed in to change notification settings - Fork 404
Re-export core2::io
or std::io
depending on feature flags
#1504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1504 +/- ##
==========================================
- Coverage 91.00% 90.98% -0.03%
==========================================
Files 80 80
Lines 43396 43396
Branches 43396 43396
==========================================
- Hits 39494 39482 -12
- Misses 3902 3914 +12
Continue to review full report at Codecov.
|
lightning/src/lib.rs
Outdated
@@ -78,9 +78,11 @@ pub mod ln; | |||
pub mod routing; | |||
|
|||
#[cfg(feature = "std")] | |||
use std::io; | |||
/// Re-export of either `core2::io` or `std::io` depending on the `std` feature flag. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// Re-export of either `core2::io` or `std::io` depending on the `std` feature flag. | |
/// Re-export of either `core2::io` or `std::io`, depending on the `std` feature flag. |
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.
c529e4c
to
b4a9b96
Compare
Seems you need to kick CI? |
This is useful in bindings as the
lightning::io
module is used inthe public interface, but also useful for users who want to refer
to the
io
as used in lightning irrespective of the feature flags.