Skip to content

Commit

Permalink
signature: bump digest to v0.11.0-pre.3; MSRV 1.71
Browse files Browse the repository at this point in the history
Per our SemVer policy, this is exempt as a SemVer breaking change.

However, per the same policy, this bumps the version to v2.3.0-pre as a
minor version bump is required.
  • Loading branch information
tarcieri committed Jan 9, 2024
1 parent 3913756 commit b260c19
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/signature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
matrix:
rust:
- 1.60.0 # MSRV
- 1.71.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
strategy:
matrix:
rust:
- 1.60.0 # MSRV
- 1.71.0 # MSRV
- stable
steps:
- uses: actions/checkout@v4
Expand All @@ -70,7 +70,7 @@ jobs:
strategy:
matrix:
rust:
- 1.60.0 # MSRV
- 1.71.0 # MSRV
- stable
steps:
- uses: actions/checkout@v4
Expand Down
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions signature/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "signature"
description = "Traits for cryptographic signature algorithms (e.g. ECDSA, Ed25519)"
version = "2.2.0"
version = "2.3.0-pre"
authors = ["RustCrypto Developers"]
license = "Apache-2.0 OR MIT"
documentation = "https://docs.rs/signature"
Expand All @@ -10,16 +10,16 @@ readme = "README.md"
keywords = ["crypto", "ecdsa", "ed25519", "signature", "signing"]
categories = ["cryptography", "no-std"]
edition = "2021"
rust-version = "1.60"
rust-version = "1.71"

[dependencies]
derive = { package = "signature_derive", version = "2", optional = true, path = "../signature_derive" }
digest = { version = "0.10.6", optional = true, default-features = false }
digest = { version = "=0.11.0-pre.3", optional = true, default-features = false }
rand_core = { version = "0.6.4", optional = true, default-features = false }

[dev-dependencies]
hex-literal = "0.4"
sha2 = { version = "0.10", default-features = false }
sha2 = { version = "=0.11.0-pre.0", default-features = false }

[features]
alloc = []
Expand Down
4 changes: 2 additions & 2 deletions signature/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ the [RustCrypto] organization, as well as [`ed25519-dalek`].

## Minimum Supported Rust Version

Rust **1.60** or higher.
Rust **1.71** or higher.

Minimum supported Rust version can be changed in the future, but it will be
done with a minor version bump.
Expand Down Expand Up @@ -56,7 +56,7 @@ dual licensed as above, without any additional terms or conditions.
[build-image]: https://github.com/RustCrypto/traits/actions/workflows/signature.yml/badge.svg
[build-link]: https://github.com/RustCrypto/traits/actions/workflows/signature.yml
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg
[rustc-image]: https://img.shields.io/badge/rustc-1.60+-blue.svg
[rustc-image]: https://img.shields.io/badge/rustc-1.71+-blue.svg
[chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg
[chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260048-signatures

Expand Down
6 changes: 3 additions & 3 deletions signature/tests/derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![cfg(all(feature = "derive", feature = "digest"))]

use digest::{generic_array::GenericArray, Digest, OutputSizeUser};
use digest::{array::Array, Digest, OutputSizeUser};
use hex_literal::hex;
use sha2::Sha256;
use signature::{
Expand All @@ -17,7 +17,7 @@ const INPUT_STRING: &[u8] = b"abc";
const INPUT_STRING_DIGEST: [u8; 32] =
hex!("ba7816bf 8f01cfea 414140de 5dae2223 b00361a3 96177a9c b410ff61 f20015ad");

type Repr = GenericArray<u8, <Sha256 as OutputSizeUser>::OutputSize>;
type Repr = Array<u8, <Sha256 as OutputSizeUser>::OutputSize>;

/// Dummy signature which just contains a digest output
#[derive(Clone, Debug)]
Expand All @@ -35,7 +35,7 @@ impl TryFrom<&[u8]> for DummySignature {
type Error = Error;

fn try_from(bytes: &[u8]) -> Result<Self, Error> {
Ok(DummySignature(GenericArray::clone_from_slice(bytes)))
Ok(DummySignature(Array::clone_from_slice(bytes)))
}
}

Expand Down

0 comments on commit b260c19

Please sign in to comment.