Skip to content

Commit 439fc8c

Browse files
authored
signature: remove derive feature (#1843)
`signature_derive` was used to provide a `Signer` implementation from a `DigestSigner` and `PrehashSignature` but it does not appears to be used in any place I can see. If this becomes to actually be used, we'll then provide a macro-based implementation for it but I'll hold on to that until we find a consumer.
1 parent d993dea commit 439fc8c

File tree

13 files changed

+1
-875
lines changed

13 files changed

+1
-875
lines changed

.github/workflows/signature.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
pull_request:
55
paths:
66
- "signature/**"
7-
- "signature-derive/**"
87
- "Cargo.*"
98
push:
109
branches: master
@@ -37,9 +36,7 @@ jobs:
3736
toolchain: ${{ matrix.rust }}
3837
targets: ${{ matrix.target }}
3938
- run: cargo build --target ${{ matrix.target }} --release --no-default-features
40-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features derive
4139
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features rand_core
42-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features derive,rand_core
4340

4441
minimal-versions:
4542
if: false # disabled until we stop using pre-releases
@@ -63,19 +60,3 @@ jobs:
6360
- run: cargo test --release --no-default-features
6461
- run: cargo test --release
6562
- run: cargo test --release --all-features
66-
67-
derive:
68-
runs-on: ubuntu-latest
69-
strategy:
70-
matrix:
71-
rust:
72-
- 1.85.0 # MSRV
73-
- stable
74-
steps:
75-
- uses: actions/checkout@v4
76-
- uses: RustCrypto/actions/cargo-cache@master
77-
- uses: dtolnay/rust-toolchain@master
78-
with:
79-
toolchain: ${{ matrix.rust }}
80-
- run: cargo test --release
81-
working-directory: signature_derive

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ members = [
1010
"elliptic-curve",
1111
"kem",
1212
"password-hash",
13-
"signature_derive",
1413
"universal-hash",
1514
"signature",
1615
]

signature/CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
- `RandomizedSignerMut` trait ([#1448])
1010

1111
### Changed
12-
- Replace `signature_derive` with blanket impls ([#1827])
1312
- Edition changed to 2024 and MSRV bumped to 1.85 ([#1759])
1413

1514
### Removed
1615
- `std` feature - replaced with `core::error::Error`
16+
- `derive` feature
1717

1818
[#1448]: https://github.com/RustCrypto/traits/pull/1448
1919
[#1759]: https://github.com/RustCrypto/traits/pull/1759
20-
[#1827]: https://github.com/RustCrypto/traits/pull/1827
2120

2221
## 2.2.0 (2023-11-12)
2322
### Changed

signature/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ categories = ["cryptography", "no-std"]
1313
description = "Traits for cryptographic signature algorithms (e.g. ECDSA, Ed25519)"
1414

1515
[dependencies]
16-
derive = { package = "signature_derive", version = "2", optional = true, path = "../signature_derive" }
1716
digest = { version = "=0.11.0-pre.10", optional = true, default-features = false }
1817
rand_core = { version = "0.9", optional = true, default-features = false }
1918

signature/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,6 @@ mod prehash_signature;
145145

146146
pub use crate::{encoding::*, error::*, keypair::*, signer::*, verifier::*};
147147

148-
#[cfg(feature = "derive")]
149-
pub use derive::{Signer, Verifier};
150-
151-
#[cfg(all(feature = "derive", feature = "digest"))]
152-
pub use derive::{DigestSigner, DigestVerifier};
153-
154148
#[cfg(feature = "digest")]
155149
pub use {crate::prehash_signature::*, digest};
156150

signature/src/prehash_signature.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ use crate::{
1919
/// This approach is relatively common in signature schemes based on the
2020
/// [Fiat-Shamir heuristic].
2121
///
22-
/// For signature types that implement this trait, when the `derive` crate
23-
/// feature is enabled a custom derive for [`Signer`] is available for any
24-
/// types that impl [`DigestSigner`], and likewise for deriving [`Verifier`] for
25-
/// types which impl [`DigestVerifier`].
26-
///
2722
/// [Fiat-Shamir heuristic]: https://en.wikipedia.org/wiki/Fiat%E2%80%93Shamir_heuristic
2823
pub trait PrehashSignature {
2924
/// Preferred `Digest` algorithm to use when computing this signature type.

signature/tests/derive.rs

Lines changed: 0 additions & 85 deletions
This file was deleted.

signature_derive/CHANGELOG.md

Lines changed: 0 additions & 76 deletions
This file was deleted.

signature_derive/Cargo.toml

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)