Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,20 +93,17 @@ jobs:
manifest-path: tower-http/Cargo.toml
command: check ${{ matrix.checks }}

cargo-public-api-crates:
external-types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
# Pinned version due to failing `cargo-public-api-crates`.
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-06-06
toolchain: nightly-2025-08-06
- name: Install cargo-check-external-types
uses: taiki-e/cache-cargo-install-action@v2
with:
tool: [email protected]
- uses: Swatinem/rust-cache@v2
- name: Install cargo-public-api-crates
run: |
cargo install --git https://github.com/davidpdrsn/cargo-public-api-crates
- name: Build rustdoc
run: |
cargo rustdoc --all-features --manifest-path tower-http/Cargo.toml -- -Z unstable-options --output-format json
- name: cargo public-api-crates check
run: cargo public-api-crates --manifest-path tower-http/Cargo.toml --skip-build check
- run: cargo check-external-types --all-features
working-directory: tower-http
25 changes: 12 additions & 13 deletions tower-http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,16 @@ rustdoc-args = ["--cfg", "docsrs"]
[package.metadata.playground]
features = ["full"]

[package.metadata.cargo-public-api-crates]
allowed = [
"bytes",
"http",
"http_body",
"mime",
"pin-project-lite",
"tokio",
"tower",
"tower_layer",
"tower_service",
"tracing",
"tracing_core",
[package.metadata.cargo_check_external_types]
allowed_external_types = [
"bytes::*",
"http::*",
"http_body::*",
"mime::*",
"tokio::*",
"tower::*",
"tower_layer::*",
"tower_service::*",
"tracing::*",
"tracing_core::*",
]
Loading