ci: update cargo-check-external-types to 0.1.10 (#6274)

This commit is contained in:
Taiki Endo 2024-01-07 00:53:08 +09:00 committed by GitHub
parent d6ba535ceb
commit 9780bf491f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 14 deletions

View File

@ -931,7 +931,7 @@ jobs:
rust:
# `check-external-types` requires a specific Rust nightly version. See
# the README for details: https://github.com/awslabs/cargo-check-external-types
- nightly-2023-05-31
- nightly-2023-10-21
steps:
- uses: actions/checkout@v4
- name: Install Rust ${{ matrix.rust }}
@ -942,9 +942,9 @@ jobs:
- name: Install cargo-check-external-types
uses: taiki-e/cache-cargo-install-action@v1
with:
tool: cargo-check-external-types@0.1.7
tool: cargo-check-external-types@0.1.10
- name: check-external-types
run: cargo check-external-types --all-features --config external-types.toml
run: cargo check-external-types --all-features
working-directory: tokio
check-fuzzing:

View File

@ -164,3 +164,13 @@ rustc-args = ["--cfg", "tokio_unstable", "--cfg", "tokio_taskdump"]
[package.metadata.playground]
features = ["full", "test-util"]
[package.metadata.cargo_check_external_types]
# The following are types that are allowed to be exposed in Tokio's public API.
# The standard library is allowed by default.
allowed_external_types = [
"bytes::buf::buf_impl::Buf",
"bytes::buf::buf_mut::BufMut",
"tokio_macros::*",
]

View File

@ -1,11 +0,0 @@
# This config file is for the `cargo-check-external-types` tool that is run in CI.
# The following are types that are allowed to be exposed in Tokio's public API.
# The standard library is allowed by default.
allowed_external_types = [
"bytes::buf::buf_impl::Buf",
"bytes::buf::buf_mut::BufMut",
"tokio_macros::*",
]