mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-06 20:41:14 +00:00
Relax zeroize dependency and bump MSRV (#412)
This commit is contained in:
parent
c3ed99bf93
commit
51572dae8d
4 changed files with 23 additions and 6 deletions
18
.github/workflows/rust.yml
vendored
18
.github/workflows/rust.yml
vendored
|
|
@ -101,18 +101,26 @@ jobs:
|
||||||
args: --features "nightly"
|
args: --features "nightly"
|
||||||
|
|
||||||
msrv:
|
msrv:
|
||||||
name: Current MSRV is 1.41
|
name: Current MSRV is 1.56.1
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
# First run `cargo +nightly -Z minimal-verisons check` in order to get a
|
||||||
|
# Cargo.lock with the oldest possible deps
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: 1.41
|
toolchain: nightly
|
||||||
override: true
|
override: true
|
||||||
- uses: actions-rs/cargo@v1
|
- run: cargo -Z minimal-versions check --no-default-features --features "fiat_u64_backend,serde"
|
||||||
|
# Now check that `cargo build` works with respect to the oldest possible
|
||||||
|
# deps and the stated MSRV
|
||||||
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
command: build
|
profile: minimal
|
||||||
|
toolchain: 1.56.1
|
||||||
|
override: true
|
||||||
|
- run: cargo build --no-default-features --features "fiat_u64_backend,serde"
|
||||||
|
|
||||||
bench:
|
bench:
|
||||||
name: Check that benchmarks compile
|
name: Check that benchmarks compile
|
||||||
|
|
@ -128,4 +136,4 @@ jobs:
|
||||||
with:
|
with:
|
||||||
command: bench
|
command: bench
|
||||||
# This filter selects no benchmarks, so we don't run any, only build them.
|
# This filter selects no benchmarks, so we don't run any, only build them.
|
||||||
args: "DONTRUNBENCHMARKS"
|
args: "nonexistentbenchmark"
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,8 @@ major series.
|
||||||
|
|
||||||
* Update the `rand_core` dependency version and the `rand` dev-dependency
|
* Update the `rand_core` dependency version and the `rand` dev-dependency
|
||||||
version.
|
version.
|
||||||
|
* Relax the `zeroize` dependency to `^1`
|
||||||
|
* Update the MSRV from 1.41 to 1.56.1
|
||||||
|
|
||||||
## 3.x series
|
## 3.x series
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ serde = { version = "1.0", default-features = false, optional = true, features =
|
||||||
# The original packed_simd package was orphaned, see
|
# The original packed_simd package was orphaned, see
|
||||||
# https://github.com/rust-lang/packed_simd/issues/303#issuecomment-701361161
|
# https://github.com/rust-lang/packed_simd/issues/303#issuecomment-701361161
|
||||||
packed_simd = { version = "0.3.4", package = "packed_simd_2", features = ["into_bits"], optional = true }
|
packed_simd = { version = "0.3.4", package = "packed_simd_2", features = ["into_bits"], optional = true }
|
||||||
zeroize = { version = ">=1, <1.4", default-features = false }
|
zeroize = { version = "1", default-features = false }
|
||||||
fiat-crypto = { version = "0.1.6", optional = true}
|
fiat-crypto = { version = "0.1.6", optional = true}
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
|
|
||||||
|
|
@ -116,6 +116,13 @@ builds using `--no-default-features`. Note that this requires explicitly
|
||||||
selecting an arithmetic backend using one of the `_backend` features.
|
selecting an arithmetic backend using one of the `_backend` features.
|
||||||
If no backend is selected, compilation will fail.
|
If no backend is selected, compilation will fail.
|
||||||
|
|
||||||
|
|
||||||
|
# Minimum Supported Rust Version
|
||||||
|
|
||||||
|
This crate requires Rust 1.56.1 at a minimum. 3.x releases of this crate supported an MSRV of 1.41.
|
||||||
|
|
||||||
|
In the future, MSRV changes will be accompanied by a minor version bump.
|
||||||
|
|
||||||
# Safety
|
# Safety
|
||||||
|
|
||||||
The `curve25519-dalek` types are designed to make illegal states
|
The `curve25519-dalek` types are designed to make illegal states
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue