Skip to content

Commit

Permalink
Lint Documentation (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda authored Aug 1, 2024
1 parent 0ee5bab commit 6e98544
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 6 deletions.
36 changes: 31 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -29,18 +30,18 @@ jobs:
run: cargo fmt --check

clippy:
name: Clippy${{ matrix.features.name }}
name: Clippy ${{ matrix.features.name }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
features:
- { features: "" }
- { name: " (`tls-rustls`)", features: --features tls-rustls }
- { name: " (`tls-rustls-no-provider`)", features: --features tls-rustls-no-provider }
- { name: " (`tls-openssl`)", features: --features tls-openssl, openssl: true }
- { name: " (`--all-features`)", features: --all-features, openssl: true }
- { name: "(`tls-rustls`)", features: --features tls-rustls }
- { name: "(`tls-rustls-no-provider`)", features: --features tls-rustls-no-provider }
- { name: "(`tls-openssl`)", features: --features tls-openssl, openssl: true }
- { name: "(`--all-features`)", features: --all-features, openssl: true }

steps:
- name: Checkout
Expand All @@ -52,3 +53,28 @@ jobs:
uses: dtolnay/rust-toolchain@stable
- name: Run Clippy
run: cargo clippy --all-targets ${{ matrix.features.features }} -- -D warnings

rustdoc:
name: Rustdoc ${{ matrix.rust.name }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
rust:
- { version: stable }
- { name: "with `cfg(docsrs)`", version: nightly, flags: --cfg=docsrs }

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install OpenSSL
run: sudo apt-get install pkg-config libssl-dev
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust.version }}
- name: Run Rustdoc
env:
RUSTDOCFLAGS: -D warnings ${{ matrix.rust.flags }}
run: cargo doc --no-deps --document-private-items --lib --examples --all-features
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//! # Guide
//!
//! axum-server can [`serve`] items that implement [`MakeService`] with some additional [trait
//! bounds](crate::service::MakeServiceRef). Make services that are [created] using [`axum`]
//! bounds](crate::service::MakeService). Make services that are [created] using [`axum`]
//! complies with those trait bounds out of the box. Therefore it is more convenient to use this
//! crate with [`axum`].
//!
Expand Down

0 comments on commit 6e98544

Please sign in to comment.