Skip to content

Commit e099732

Browse files
authored
Add ci to check external types (#250)
1 parent 7474b9e commit e099732

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/rust.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,17 @@ jobs:
5555
uses: obi1kenobi/cargo-semver-checks-action@v2
5656
with:
5757
uses: dtolnay/rust-toolchain@stable
58+
59+
external-types:
60+
runs-on: ubuntu-latest
61+
steps:
62+
- uses: actions/checkout@v5
63+
- uses: dtolnay/rust-toolchain@master
64+
with:
65+
toolchain: nightly-2025-08-06
66+
- name: Install cargo-check-external-types
67+
uses: taiki-e/cache-cargo-install-action@v2
68+
with:
69+
70+
- uses: Swatinem/rust-cache@v2
71+
- run: cargo check-external-types --all-features

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,9 @@ regex = ["dep:regex"]
4141

4242
[lints.rust]
4343
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tokio_unstable)'] }
44+
45+
[package.metadata.cargo_check_external_types]
46+
allowed_external_types = [
47+
"bytes::*",
48+
"tokio::*",
49+
]

0 commit comments

Comments
 (0)