mirror of
https://github.com/RustCrypto/signatures
synced 2026-06-21 13:45:42 +00:00
CI: add workspace-level doc check (#1348)
Ensures the docs for all crates build without warnings
This commit is contained in:
@@ -11,6 +11,7 @@ on:
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
RUSTFLAGS: "-Dwarnings"
|
||||
RUSTDOCFLAGS: "-Dwarnings"
|
||||
|
||||
# Cancels CI jobs when new commits are pushed to a PR branch
|
||||
concurrency:
|
||||
@@ -18,16 +19,6 @@ concurrency:
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
rustfmt:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6.0.2
|
||||
- uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: stable
|
||||
components: rustfmt
|
||||
- run: cargo fmt --all -- --check
|
||||
|
||||
clippy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -38,6 +29,25 @@ jobs:
|
||||
components: clippy
|
||||
- run: cargo clippy --all-features -- -D warnings
|
||||
|
||||
doc:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: stable
|
||||
- run: cargo doc --workspace --all-features --no-deps
|
||||
|
||||
rustfmt:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6.0.2
|
||||
- uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: stable
|
||||
components: rustfmt
|
||||
- run: cargo fmt --all -- --check
|
||||
|
||||
typos:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@ use {
|
||||
#[cfg(feature = "digest")]
|
||||
use digest::block_api::EagerHash;
|
||||
|
||||
/// Bind a preferred [`Digest`] algorithm to an elliptic curve type.
|
||||
/// Bind a preferred [`EagerHash`] algorithm to an elliptic curve type.
|
||||
///
|
||||
/// Generally there is a preferred variety of the SHA-2 family used with ECDSA
|
||||
/// for a particular elliptic curve.
|
||||
|
||||
@@ -59,7 +59,7 @@ use elliptic_curve::pkcs8::{EncodePrivateKey, SecretDocument};
|
||||
/// primary API for signing:
|
||||
///
|
||||
/// - [`Signer`]: sign a message using this key
|
||||
/// - [`DigestSigner`]: sign the output of a [`Digest`] using this key
|
||||
/// - [`DigestSigner`]: sign the output of a digest using this key
|
||||
/// - [`PrehashSigner`]: sign the low-level raw output bytes of a message digest
|
||||
///
|
||||
/// See the [`p256` crate](https://docs.rs/p256/latest/p256/ecdsa/index.html)
|
||||
|
||||
@@ -58,7 +58,7 @@ use elliptic_curve::pkcs8::EncodePublicKey;
|
||||
/// primary API for verifying:
|
||||
///
|
||||
/// - [`Verifier`]: verify a message against a provided key and signature
|
||||
/// - [`DigestVerifier`]: verify a message [`Digest`] against a provided key and signature
|
||||
/// - [`DigestVerifier`]: verify a message digest against a provided key and signature
|
||||
/// - [`PrehashVerifier`]: verify the low-level raw output bytes of a message digest
|
||||
///
|
||||
/// See the [`p256` crate](https://docs.rs/p256/latest/p256/ecdsa/index.html)
|
||||
|
||||
@@ -144,7 +144,7 @@ impl<Mode: LmsMode> RandomizedMultipartSignerMut<Signature<Mode>> for SigningKey
|
||||
}
|
||||
}
|
||||
|
||||
/// Converts a [PrivateKey] into its byte representation
|
||||
/// Converts a [`SigningKey`] into its byte representation.
|
||||
impl<Mode: LmsMode> From<SigningKey<Mode>>
|
||||
for Array<u8, Sum<<Mode::Hasher as OutputSizeUser>::OutputSize, U28>>
|
||||
where
|
||||
@@ -165,7 +165,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
/// Tries to parse a [PrivateKey] from an exact slice
|
||||
/// Tries to parse a [`SigningKey`] from an exact slice.
|
||||
impl<'a, Mode: LmsMode> TryFrom<&'a [u8]> for SigningKey<Mode> {
|
||||
type Error = LmsDeserializeError;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user