Merge pull request #475 from apoelstra/2020-09--0.24.0

Increase version to 0.24
This commit is contained in:
Andrew Poelstra 2020-09-10 19:58:03 +00:00 committed by GitHub
commit bcf2c5981d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 34 additions and 5 deletions

View File

@ -1,4 +1,20 @@
# 0.24.0 - 2020-09-10
- [Remove](https://github.com/rust-bitcoin/rust-bitcoin/pull/385) the `BitcoinHash` trait
- [Introduce `SigHashCache` structure](https://github.com/rust-bitcoin/rust-bitcoin/pull/390) to replace `SighashComponents` and support all sighash modes
- [Add](https://github.com/rust-bitcoin/rust-bitcoin/pull/416) `Transaction::get_size` method
- [Export](https://github.com/rust-bitcoin/rust-bitcoin/pull/412) `util::amount::Denomination`
- [Add](https://github.com/rust-bitcoin/rust-bitcoin/pull/417) `Block::get_size` and `Block::get_weight` methods
- [Add](https://github.com/rust-bitcoin/rust-bitcoin/pull/415) `MerkleBlock::from_header_txids`
- [Add](https://github.com/rust-bitcoin/rust-bitcoin/pull/429) `BlockHeader::u256_from_compact_target`
- [Add](https://github.com/rust-bitcoin/rust-bitcoin/pull/448) `feefilter` network message
- [Cleanup/replace](https://github.com/rust-bitcoin/rust-bitcoin/pull/397) `Script::Instructions` iterator API
- [Disallow uncompressed pubkeys in witness address generation](https://github.com/rust-bitcoin/rust-bitcoin/pull/428)
- [Deprecate](https://github.com/rust-bitcoin/rust-bitcoin/pull/451) `util::contracthash` module
- [Add](https://github.com/rust-bitcoin/rust-bitcoin/pull/435) modulo division operation for `Uint128` and `Uint256`
- [Add](https://github.com/rust-bitcoin/rust-bitcoin/pull/436) `slice_to_u64_be` endian conversion method
# 0.23.0 - 2020-01-07
- Update `secp256k1` dependency to `0.17.1`.

View File

@ -1,6 +1,6 @@
[package]
name = "bitcoin"
version = "0.23.0"
version = "0.24.0"
authors = ["Andrew Poelstra <apoelstra@wpsoftware.net>"]
license = "CC0-1.0"
homepage = "https://github.com/rust-bitcoin/rust-bitcoin/"
@ -22,8 +22,8 @@ use-serde = ["serde", "bitcoin_hashes/serde", "secp256k1/serde"]
[dependencies]
bech32 = "0.7.2"
bitcoin_hashes = "0.7.3"
secp256k1 = "0.17.1"
bitcoin_hashes = "0.8.0"
secp256k1 = "0.18.0"
bitcoinconsensus = { version = "0.19.0-1", optional = true }
serde = { version = "1", optional = true }
@ -33,6 +33,6 @@ hex = "=0.3.2"
serde_derive = "<1.0.99"
serde_json = "<1.0.45"
serde_test = "1"
secp256k1 = { version = "0.17.1", features = ["rand-std"] }
secp256k1 = { version = "0.18.0", features = ["rand-std"] }
# We need to pin ryu (transitive dep from serde_json) to stay compatible with Rust 1.22.0
ryu = "<1.0.5"

View File

@ -53,6 +53,12 @@ freenode.
## Minimum Supported Rust Version (MSRV)
This library should always compile with any combination of features on **Rust 1.22**.
Because some dependencies have broken the build in minor/patch releases, to
compile with 1.22.0 you will need to run the following version-pinning command:
```
cargo update -p cc --precise "1.0.41" --verbose
```
## Installing Rust
Rust can be installed using your package manager of choice or
[rustup.rs](https://rustup.rs). The former way is considered more secure since

View File

@ -45,5 +45,12 @@ then
cargo new dep_test
cd dep_test
echo 'bitcoin = { path = "..", features = ["use-serde"] }' >> Cargo.toml
# Pin `cc` for Rust 1.22
if [ "$TRAVIS_RUST_VERSION" = "1.22.0" ]; then
cargo generate-lockfile --verbose
cargo update -p cc --precise "1.0.41" --verbose
fi
cargo test --verbose
fi

View File

@ -18,7 +18,7 @@
//! at http://blockstream.com/sidechains.pdf for details of
//! what this does.
#![deprecated]
#![cfg_attr(not(test), deprecated)]
use secp256k1::{self, Secp256k1};
use PrivateKey;