Merge pull request #760 from zcash/759-msrv-1.60

Bump MSRV for `zcash_primitives` and dependents to 1.60
This commit is contained in:
Kris Nuttycombe 2023-01-19 19:33:15 -07:00 committed by GitHub
commit 79f3f10714
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 28 additions and 20 deletions

View File

@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.56.1
toolchain: 1.60.0
override: true
- name: Fetch path to Zcash parameters
@ -58,7 +58,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.56.1
toolchain: 1.60.0
override: true
- name: Add target
run: rustup target add ${{ matrix.target }}
@ -81,7 +81,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.56.1
toolchain: 1.60.0
override: true
# Build benchmarks to prevent bitrot
- name: Build benchmarks
@ -91,20 +91,20 @@ jobs:
args: --all --benches
clippy:
name: Clippy (1.56.1)
name: Clippy (1.60.0)
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.56.1
toolchain: 1.60.0
components: clippy
override: true
- name: Run clippy
uses: actions-rs/clippy-check@v1
with:
name: Clippy (1.56.1)
name: Clippy (1.60.0)
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --all-targets -- -D warnings
@ -177,7 +177,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.56.1
toolchain: 1.60.0
override: true
- name: cargo fetch
uses: actions-rs/cargo@v1
@ -200,7 +200,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.56.1
toolchain: 1.60.0
override: true
# Ensure all code has been formatted with rustfmt

View File

@ -1 +0,0 @@
1.56.1

2
rust-toolchain.toml Normal file
View File

@ -0,0 +1,2 @@
[toolchain]
channel = "1.60.0"

View File

@ -8,6 +8,7 @@ and this library adheres to Rust's notion of
## [Unreleased]
### Changed
- MSRV is now 1.60.0.
- `zcash_client_backend::data_api::wallet::shield_transparent_funds` now
takes a `shielding_threshold` argument that can be used to specify the
minimum value allowed as input to a shielding transaction. Previously

View File

@ -11,7 +11,7 @@ repository = "https://github.com/zcash/librustzcash"
readme = "README.md"
license = "MIT OR Apache-2.0"
edition = "2021"
rust-version = "1.56.1"
rust-version = "1.60"
# Exclude proto files so crates.io consumers don't need protoc.
exclude = ["*.proto"]

View File

@ -6,6 +6,8 @@ and this library adheres to Rust's notion of
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Changed
- MSRV is now 1.60.0.
## [0.4.2] - 2022-12-13
### Fixed

View File

@ -11,7 +11,7 @@ repository = "https://github.com/zcash/librustzcash"
readme = "README.md"
license = "MIT OR Apache-2.0"
edition = "2021"
rust-version = "1.56.1"
rust-version = "1.60"
[dependencies]
zcash_client_backend = { version = "0.6", path = "../zcash_client_backend" }

View File

@ -7,4 +7,4 @@ and this library adheres to Rust's notion of
## [Unreleased]
Initial release.
MSRV is 1.56.1
MSRV is 1.60.0.

View File

@ -7,7 +7,7 @@ homepage = "https://github.com/zcash/librustzcash"
repository = "https://github.com/zcash/librustzcash"
license = "MIT OR Apache-2.0"
edition = "2021"
rust-version = "1.56.1"
rust-version = "1.60"
[dependencies]
blake2b_simd = "1"

View File

@ -6,6 +6,8 @@ and this library adheres to Rust's notion of
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Changed
- MSRV is now 1.60.0.
## [0.3.0] - 2022-05-11
### Added

View File

@ -3,7 +3,7 @@ name = "zcash_history"
version = "0.3.0"
authors = ["NikVolf <nikvolf@gmail.com>"]
edition = "2021"
rust-version = "1.56.1"
rust-version = "1.60"
license = "MIT/Apache-2.0"
documentation = "https://docs.rs/zcash_history/"
description = "Library for Zcash blockchain history tools"

View File

@ -13,6 +13,7 @@ and this library adheres to Rust's notion of
commitments.
### Changed
- MSRV is now 1.60.0.
- `zcash_primitives::transaction::components::sapling::builder`:
- `SaplingBuilder::add_output` now takes a
`zcash_primitives::sapling::value::NoteValue`.

View File

@ -11,7 +11,7 @@ repository = "https://github.com/zcash/librustzcash"
readme = "README.md"
license = "MIT OR Apache-2.0"
edition = "2021"
rust-version = "1.56.1"
rust-version = "1.60"
categories = ["cryptography::cryptocurrencies"]
[package.metadata.docs.rs]
@ -86,14 +86,14 @@ features = ["pre-zip-212"]
[dev-dependencies]
chacha20poly1305 = "0.10"
criterion = "0.3"
criterion = "0.4"
proptest = "1.0.0"
assert_matches = "1.3.0"
rand_xorshift = "0.3"
orchard = { version = "0.3", features = ["test-dependencies"] }
[target.'cfg(unix)'.dev-dependencies]
pprof = { version = "0.9", features = ["criterion", "flamegraph"] } # MSRV 1.56
pprof = { version = "0.11", features = ["criterion", "flamegraph"] } # MSRV 1.56
[features]
transparent-inputs = ["hdwallet", "ripemd", "secp256k1"]

View File

@ -12,6 +12,7 @@ and this library adheres to Rust's notion of
- A `value_commitment_opening` field on `Spend` and `Output`.
### Changed
- MSRV is now 1.60.0.
- Value commitments now use `zcash_primitives::sapling::value::ValueCommitment`
instead of `jubjub::ExtendedPoint` in `zcash_proofs::sapling`:
- `SaplingProvingContext::{spend_proof, output_proof}`

View File

@ -10,7 +10,7 @@ repository = "https://github.com/zcash/librustzcash"
readme = "README.md"
license = "MIT OR Apache-2.0"
edition = "2021"
rust-version = "1.56.1"
rust-version = "1.60"
categories = ["cryptography::cryptocurrencies"]
[package.metadata.docs.rs]
@ -39,11 +39,11 @@ wagyu-zcash-parameters = { version = "0.2", optional = true }
[dev-dependencies]
byteorder = "1"
criterion = "0.3"
criterion = "0.4"
rand_xorshift = "0.3"
[target.'cfg(unix)'.dev-dependencies]
pprof = { version = "0.9", features = ["criterion", "flamegraph"] } # MSRV 1.56
pprof = { version = "0.11", features = ["criterion", "flamegraph"] } # MSRV 1.56
[features]
default = ["local-prover", "multicore"]