Skip to content

Commit

Permalink
Add github action to catch badly formated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Progdrasil committed Jul 30, 2024
1 parent 440b3c8 commit 827ae65
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,22 @@ jobs:
components: rustfmt
- run: rustup run ${{ matrix.rust}} cargo fmt --all -- --check

docs:
name: Documentation
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
components: rustdoc
- run: RUSTDOCFLAGS="-D warnings " rustup run ${{ matrix }} cargo doc --workspace --locked --no-deps --all-features

test:
name: Test
runs-on: ubuntu-latest
Expand All @@ -56,7 +72,7 @@ jobs:
with:
profile: minimal
toolchain: ${{ matrix.rust }}
- run: rustup run ${{ matrix.rust }} cargo test
- run: rustup run ${{ matrix.rust }} cargo test

typeshare:
name: Typeshare
Expand Down
5 changes: 4 additions & 1 deletion passkey-types/src/ctap2/get_assertion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ use crate::{
pub use crate::ctap2::make_credential::Options;

#[cfg(doc)]
use crate::webauthn::{CollectedClientData, PublicKeyCredentialRequestOptions};
use {
crate::webauthn::{CollectedClientData, PublicKeyCredentialRequestOptions},
ciborium::Value,
};

use super::extensions::{AuthenticatorPrfGetOutputs, AuthenticatorPrfInputs, HmacGetSecretInput};

Expand Down

0 comments on commit 827ae65

Please sign in to comment.