Merge pull request #231 from rust-bitcoin/2020-08-msrv-1.29

Update MSRV to 1.29; increase version to 0.19 and -sys version to 0.3
This commit is contained in:
Andrew Poelstra 2020-08-27 16:27:38 +00:00 committed by GitHub
commit b2e315f154
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 20 additions and 11 deletions

View File

@ -7,7 +7,7 @@ rust:
- stable - stable
- beta - beta
- nightly - nightly
- 1.22.0 - 1.29.0
distro: bionic distro: bionic
os: os:
- linux - linux
@ -22,11 +22,11 @@ addons:
matrix: matrix:
exclude: exclude:
- rust: 1.22.0 - rust: 1.29.0
os: windows os: windows
script: script:
- if [ "$TRAVIS_RUST_VERSION" == "1.22.0" ]; then - if [ "$TRAVIS_RUST_VERSION" == "1.29.0" ]; then
cargo generate-lockfile --verbose && cargo update -p cc --precise "1.0.41" --verbose; cargo generate-lockfile --verbose && cargo update -p cc --precise "1.0.41" --verbose;
fi fi
- cargo build --verbose --no-default-features - cargo build --verbose --no-default-features
@ -43,7 +43,7 @@ script:
- cargo test --verbose --features="rand rand-std" - cargo test --verbose --features="rand rand-std"
- cargo test --verbose --features="rand serde" - cargo test --verbose --features="rand serde"
- cargo test --verbose --features="rand serde recovery endomorphism" - cargo test --verbose --features="rand serde recovery endomorphism"
- if [ ${TRAVIS_RUST_VERSION} != "1.22.0" ]; then - if [ ${TRAVIS_RUST_VERSION} != "1.29.0" ]; then
cargo test --verbose --features global-context; cargo test --verbose --features global-context;
fi fi
- cargo build --verbose - cargo build --verbose

View File

@ -1,4 +1,8 @@
# 0.19.0 - 2020-08-27
* **Update MSRV to 1.29.0**
# 0.18.0 - 2020-08-26 # 0.18.0 - 2020-08-26
* Add feature-gated `bitcoin_hashes` dependency and [`ThirtyTwoByteHash` trait](https://github.com/rust-bitcoin/rust-secp256k1/pull/206/) * Add feature-gated `bitcoin_hashes` dependency and [`ThirtyTwoByteHash` trait](https://github.com/rust-bitcoin/rust-secp256k1/pull/206/)

View File

@ -1,7 +1,7 @@
[package] [package]
name = "secp256k1" name = "secp256k1"
version = "0.18.0" version = "0.19.0"
authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>", authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>",
"Andrew Poelstra <apoelstra@wpsoftware.net>" ] "Andrew Poelstra <apoelstra@wpsoftware.net>" ]
license = "CC0-1.0" license = "CC0-1.0"
@ -39,20 +39,20 @@ external-symbols = ["secp256k1-sys/external-symbols"]
fuzztarget = ["secp256k1-sys/fuzztarget"] fuzztarget = ["secp256k1-sys/fuzztarget"]
[dependencies] [dependencies]
secp256k1-sys = { version = "0.2.0", default-features = false, path = "./secp256k1-sys" } secp256k1-sys = { version = "0.3.0", default-features = false, path = "./secp256k1-sys" }
[dev-dependencies] [dev-dependencies]
rand = "0.6" rand = "0.6"
rand_core = "0.4" rand_core = "0.4"
serde_test = "1.0" serde_test = "1.0"
bitcoin_hashes = "0.7" bitcoin_hashes = "0.9"
[target.wasm32-unknown-unknown.dev-dependencies] [target.wasm32-unknown-unknown.dev-dependencies]
wasm-bindgen-test = "0.3" wasm-bindgen-test = "0.3"
rand = { version = "0.6", features = ["wasm-bindgen"] } rand = { version = "0.6", features = ["wasm-bindgen"] }
[dependencies.bitcoin_hashes] [dependencies.bitcoin_hashes]
version = "0.7" version = "0.9"
optional = true optional = true
[dependencies.rand] [dependencies.rand]

View File

@ -25,13 +25,13 @@ Contributions to this library are welcome. A few guidelines:
## A note on Rust 1.22 support ## A note on Rust 1.22 support
The build dependency `cc` might require a more recent version of the Rust compiler. The build dependency `cc` might require a more recent version of the Rust compiler.
To ensure compilation with Rust 1.22.0, pin its version in your `Cargo.lock` To ensure compilation with Rust 1.29.0, pin its version in your `Cargo.lock`
with `cargo update -p cc --precise 1.0.41`. If you're using `secp256k1` in a library, with `cargo update -p cc --precise 1.0.41`. If you're using `secp256k1` in a library,
to make sure it compiles in CI, you'll need to generate a lockfile first. to make sure it compiles in CI, you'll need to generate a lockfile first.
Example for Travis CI: Example for Travis CI:
```yml ```yml
before_script: before_script:
- if [ "$TRAVIS_RUST_VERSION" == "1.22.0" ]; then - if [ "$TRAVIS_RUST_VERSION" == "1.29.0" ]; then
cargo generate-lockfile --verbose && cargo update -p cc --precise "1.0.41" --verbose; cargo generate-lockfile --verbose && cargo update -p cc --precise "1.0.41" --verbose;
fi fi
``` ```

View File

@ -1,4 +1,8 @@
# 0.3.0 - 2020-08-27
* **Update MSRV to 1.29.0**
# 0.2.0 - 2020-08-26 # 0.2.0 - 2020-08-26
* Update upstream to `670cdd3f8be25f81472b2d16dcd228b0d24a5c45` * Update upstream to `670cdd3f8be25f81472b2d16dcd228b0d24a5c45`

View File

@ -1,6 +1,6 @@
[package] [package]
name = "secp256k1-sys" name = "secp256k1-sys"
version = "0.2.0" version = "0.3.0"
authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>", authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>",
"Andrew Poelstra <apoelstra@wpsoftware.net>", "Andrew Poelstra <apoelstra@wpsoftware.net>",
"Steven Roose <steven@stevenroose.org>" ] "Steven Roose <steven@stevenroose.org>" ]

View File

@ -506,6 +506,7 @@ impl Message {
/// `bitcoin_hashes` to be enabled. /// `bitcoin_hashes` to be enabled.
/// ```rust /// ```rust
/// extern crate bitcoin_hashes; /// extern crate bitcoin_hashes;
/// # extern crate secp256k1;
/// use secp256k1::Message; /// use secp256k1::Message;
/// use bitcoin_hashes::sha256; /// use bitcoin_hashes::sha256;
/// use bitcoin_hashes::Hash; /// use bitcoin_hashes::Hash;