Skip to content

Commit

Permalink
ci: update cargo-check-external-types to 0.1.10 (#6274)
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jan 6, 2024
1 parent d6ba535 commit 9780bf4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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:
Expand Down
10 changes: 10 additions & 0 deletions tokio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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::*",
]
11 changes: 0 additions & 11 deletions tokio/external-types.toml

This file was deleted.

0 comments on commit 9780bf4

Please sign in to comment.