Skip to content

Commit 76ebc78

Browse files
committed
feat(CI): add external type check
1 parent 84f6ae7 commit 76ebc78

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/CI.yml

+20
Original file line numberDiff line numberDiff line change
@@ -260,3 +260,23 @@ jobs:
260260
with:
261261
command: rustdoc
262262
args: --features full,ffi -- --cfg docsrs --cfg hyper_unstable_ffi -D broken-intra-doc-links
263+
264+
doc:
265+
name: Check exposed types
266+
needs: [style, test]
267+
runs-on: ubuntu-latest
268+
steps:
269+
- name: Checkout
270+
uses: actions/checkout@v1
271+
272+
- name: Install Rust
273+
uses: actions-rs/toolchain@v1
274+
with:
275+
profile: minimal
276+
toolchain: nightly
277+
override: true
278+
279+
- name: cargo check-external-types
280+
uses: actions-rs/cargo@v1
281+
with:
282+
command: check-external-types

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ libc = { version = "0.2", optional = true }
4545
socket2 = { version = "0.4", optional = true }
4646

4747
[dev-dependencies]
48+
cargo-check-external-types = "0.1.2"
4849
futures-util = { version = "0.3", default-features = false, features = ["alloc"] }
4950
matches = "0.1"
5051
num_cpus = "1.0"

0 commit comments

Comments
 (0)