mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-29 03:32:52 +01:00
Try cargo public-api-crates
on CI (#1761)
This commit is contained in:
parent
c18ff9dd63
commit
e6ff0281ae
5 changed files with 67 additions and 0 deletions
19
.github/workflows/CI.yml
vendored
19
.github/workflows/CI.yml
vendored
|
@ -74,6 +74,25 @@ jobs:
|
||||||
- name: cargo hack check
|
- name: cargo hack check
|
||||||
run: cargo hack check --each-feature --no-dev-deps --all
|
run: cargo hack check --each-feature --no-dev-deps --all
|
||||||
|
|
||||||
|
cargo-public-api-crates:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
crate: [axum, axum-core, axum-extra, axum-macros]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
toolchain: nightly
|
||||||
|
override: true
|
||||||
|
profile: minimal
|
||||||
|
- uses: Swatinem/rust-cache@v1
|
||||||
|
- name: Install cargo-public-api-crates
|
||||||
|
run: |
|
||||||
|
cargo install --git https://github.com/davidpdrsn/cargo-public-api-crates
|
||||||
|
- name: cargo public-api-crates check
|
||||||
|
run: cargo public-api-crates --manifest-path ${{ matrix.crate }}/Cargo.toml check
|
||||||
|
|
||||||
test-versions:
|
test-versions:
|
||||||
needs: check
|
needs: check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
@ -30,3 +30,12 @@ futures-util = "0.3"
|
||||||
hyper = "0.14"
|
hyper = "0.14"
|
||||||
tokio = { version = "1.0", features = ["macros"] }
|
tokio = { version = "1.0", features = ["macros"] }
|
||||||
tower-http = { version = "0.3.4", features = ["limit"] }
|
tower-http = { version = "0.3.4", features = ["limit"] }
|
||||||
|
|
||||||
|
[package.metadata.cargo-public-api-crates]
|
||||||
|
allowed = [
|
||||||
|
"futures_core",
|
||||||
|
"http",
|
||||||
|
"bytes",
|
||||||
|
"http_body",
|
||||||
|
"tower_layer",
|
||||||
|
]
|
||||||
|
|
|
@ -73,3 +73,22 @@ tower-http = { version = "0.3", features = ["map-response-body", "timeout"] }
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
all-features = true
|
all-features = true
|
||||||
rustdoc-args = ["--cfg", "docsrs"]
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
|
[package.metadata.cargo-public-api-crates]
|
||||||
|
allowed = [
|
||||||
|
"axum",
|
||||||
|
"axum_core",
|
||||||
|
"bytes",
|
||||||
|
"cookie",
|
||||||
|
"futures_core",
|
||||||
|
"futures_util",
|
||||||
|
"http",
|
||||||
|
"http_body",
|
||||||
|
"hyper",
|
||||||
|
"percent_encoding",
|
||||||
|
"prost",
|
||||||
|
"serde",
|
||||||
|
"tokio",
|
||||||
|
"tower_layer",
|
||||||
|
"tower_service",
|
||||||
|
]
|
||||||
|
|
|
@ -37,3 +37,6 @@ serde_json = "1.0"
|
||||||
syn = { version = "1.0", features = ["full", "extra-traits"] }
|
syn = { version = "1.0", features = ["full", "extra-traits"] }
|
||||||
tokio = { version = "1.0", features = ["full"] }
|
tokio = { version = "1.0", features = ["full"] }
|
||||||
trybuild = "1.0.63"
|
trybuild = "1.0.63"
|
||||||
|
|
||||||
|
[package.metadata.cargo-public-api-crates]
|
||||||
|
allowed = []
|
||||||
|
|
|
@ -110,6 +110,23 @@ features = [
|
||||||
"ws",
|
"ws",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[package.metadata.cargo-public-api-crates]
|
||||||
|
allowed = [
|
||||||
|
"axum_core",
|
||||||
|
"bytes",
|
||||||
|
"futures_core",
|
||||||
|
"futures_sink",
|
||||||
|
"futures_util",
|
||||||
|
"headers_core",
|
||||||
|
"http",
|
||||||
|
"http_body",
|
||||||
|
"hyper",
|
||||||
|
"serde",
|
||||||
|
"serde_json",
|
||||||
|
"tower_layer",
|
||||||
|
"tower_service",
|
||||||
|
]
|
||||||
|
|
||||||
[[bench]]
|
[[bench]]
|
||||||
name = "benches"
|
name = "benches"
|
||||||
harness = false
|
harness = false
|
||||||
|
|
Loading…
Reference in a new issue