Re-export psbt module from root level#790
Conversation
|
@sanket1729 there is a branch |
thomaseizinger
left a comment
There was a problem hiding this comment.
I really, really wish clippy/rustc would have a lint against this. Needing to check this manually is just tedious.
ACK 737c48a2d989756728b82ca34f2dd5d039aa9147
sanket1729
left a comment
There was a problem hiding this comment.
utACK 737c48a2d989756728b82ca34f2dd5d039aa9147
src/lib.rs
Outdated
There was a problem hiding this comment.
I really think exporting PSBT-specific types as bitcoin::Input at root level gives highly misleading names. They are for sure should be kept as bitcoin::psbt::Input or bitcoin::util::psbt::Input, as they always were
There was a problem hiding this comment.
Oh yes this is much better.
|
Strongly agree with @dr-orlovsky however with a bit of resistance I might accept |
|
I propose not to increase confusion with type names. It will be really strange to export the same type under different names, |
|
Agree. Removing |
|
concept ACK
Not sure how much of these would uncontroversial and acceptable for the imminent release. |
|
I believe that 0.29 will be more suitable for renaming. We even have it in description. :) |
|
With |
Yup, we need to export |
We currently have the `map` module private but containing a bunch of types that are needed in the public API (specifically in a `PartiallySignedTransaction`). Re-export the publicly required types to the `psbt` module and then again at the root level of `rust-bitcoin` as we do for other types.
b138428
737c48a to
b138428
Compare
|
@sanket1729, I didn't quite understand your comment. I've just exported |
|
can't merge with "review requested" from @dr-orlovsky |
|
@RCasatta sorry for being slow. Will be able to merge in 1-2hrs, if you will not merge that before that time |
|
@dr-orlovsky very fast when requested though, thanks |
We currently have the
mapmodule private but containing a bunch of types that are needed in the public API (specifically in aPartiallySignedTransaction).To give access to them re-export the
util::psbtmodule at the root level.Found while testing
masterwithrust-miniscript.