diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 258cded761..4467185b39 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -240,17 +240,17 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@master with: - toolchain: nightly-2023-05-31 # Compatible version for cargo-check-external-types + toolchain: nightly-2023-10-10 # Compatible version for cargo-check-external-types - 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.9 - uses: Swatinem/rust-cache@v2 - name: check-external-types - run: cargo check-external-types --config .github/workflows/external-types.toml + run: cargo check-external-types udeps: needs: [style] diff --git a/.github/workflows/external-types.toml b/.github/workflows/external-types.toml deleted file mode 100644 index 23a83c1f02..0000000000 --- a/.github/workflows/external-types.toml +++ /dev/null @@ -1,15 +0,0 @@ -allowed_external_types = [ - "bytes::buf::buf_impl::Buf", - "bytes::bytes::Bytes", - "http::header", - "http::header::map::HeaderMap", - "http::method::Method", - "http::request::Request", - "http::response::Response", - "http::status::StatusCode", - "http::uri::Uri", - "http::version::Version", - "http_body::Body", - "http_body::frame::Frame", - "http_body::size_hint::SizeHint", -] diff --git a/Cargo.toml b/Cargo.toml index 860b2a8dca..201ceda9cd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -97,6 +97,23 @@ rustdoc-args = ["--cfg", "docsrs", "--cfg", "hyper_unstable_ffi", "--cfg", "hype [package.metadata.playground] features = ["full"] +[package.metadata.cargo_check_external_types] +allowed_external_types = [ + "bytes::buf::buf_impl::Buf", + "bytes::bytes::Bytes", + "http::header", + "http::header::map::HeaderMap", + "http::method::Method", + "http::request::Request", + "http::response::Response", + "http::status::StatusCode", + "http::uri::Uri", + "http::version::Version", + "http_body::Body", + "http_body::frame::Frame", + "http_body::size_hint::SizeHint", +] + [profile.release] codegen-units = 1 incremental = false