Skip to content

Re-export SigHashType in lib.rs#749

Merged
RCasatta merged 1 commit intorust-bitcoin:masterfrom
sanket1729:sighash_export_breaking
Dec 27, 2021
Merged

Re-export SigHashType in lib.rs#749
RCasatta merged 1 commit intorust-bitcoin:masterfrom
sanket1729:sighash_export_breaking

Conversation

@sanket1729
Copy link
Copy Markdown
Member

Using the latest version of rust-bitcoin master on rust-miniscript
errors on bitcoin::SigHashType not found. In the original PR, I only
renamed the export to ECDSASigHashType, but original re-export should
also be there in lib.rs to avoid breaking changes downstream.

Fixup to #702

Before this PR,

   |
89 |         required: bitcoin::SigHashType,
   |                            ^^^^^^^^^^^ not found in `bitcoin

After this PR,

warning: use of deprecated type alias `bitcoin::SigHashType`: Please use [`EcdsaSigHashType`] instead
  --> src/psbt/mod.rs:89:28
   |
89 |         required: bitcoin::SigHashType,

@sanket1729 sanket1729 added bug trivial Obvious, easy and quick to review (few lines or doc-only...) labels Dec 25, 2021
@sanket1729 sanket1729 added this to the 0.28.0 milestone Dec 25, 2021
Using the latest version of rust-bitcoin master on rust-miniscript
errors on bitcoin::SigHashType not found. In the original PR, I only
renamed the export to ECDSASigHashType, but original re-export should
also be there in lib.rs to avoid to breaking changes downstream.
@sanket1729 sanket1729 force-pushed the sighash_export_breaking branch from 5289868 to 3eea63e Compare December 25, 2021 23:26
pub use util::ecdsa::PrivateKey;
#[deprecated(since = "0.26.1", note = "Please use `ecdsa::PublicKey` instead")]
pub use util::ecdsa::PublicKey;
#[allow(deprecated)]
Copy link
Copy Markdown
Member Author

@sanket1729 sanket1729 Dec 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It kinda sucks that I have to have this to avoid a warning when this is just for re-exporting.

Copy link
Copy Markdown
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 3eea63e

Copy link
Copy Markdown
Collaborator

@RCasatta RCasatta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 3eea63e

@RCasatta RCasatta merged commit 38f9360 into rust-bitcoin:master Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug trivial Obvious, easy and quick to review (few lines or doc-only...)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants