You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is only a client-side library, so I think there's no need for requests to do anything with deserialization, and response to do anything with serialization. This is simply dead code.
Unless there's a strong case for keeping them—which I don't think, but please let me know—it would be good to remove them.
The text was updated successfully, but these errors were encountered:
I developed my own pattern for exactly this case. I put protocol related types into a separate crate with two feature flags: server and client. Then I implement server side by depending on that crate with server feature enabled and same thing for the client.
It's probably overkill to use separate crate in this case, since the server isn't implemented in Rust. Using feature flag to enable server side might still be useful for testing, don't you think?
Using feature flag to enable server side might still be useful for testing, don't you think?
I'm not convinced that it is even useful for testing. I considered it, but there is no point in testing round-trips if half of the functionality is not required. Can just as well simply compare the result.
The most useful testing work at this point would be #11, as it would detect incompatibilities between the actual lightningd and this crate.
This is only a client-side library, so I think there's no need for
requests
to do anything with deserialization, andresponse
to do anything with serialization. This is simply dead code.Unless there's a strong case for keeping them—which I don't think, but please let me know—it would be good to remove them.
The text was updated successfully, but these errors were encountered: