diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 4467185b39..549aed9144 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -250,7 +250,7 @@ jobs: - uses: Swatinem/rust-cache@v2 - name: check-external-types - run: cargo check-external-types + run: cargo check-external-types --config .github/workflows/external-types.toml udeps: needs: [style] diff --git a/.github/workflows/external-types.toml b/.github/workflows/external-types.toml new file mode 100644 index 0000000000..23a83c1f02 --- /dev/null +++ b/.github/workflows/external-types.toml @@ -0,0 +1,15 @@ +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 201ceda9cd..860b2a8dca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -97,23 +97,6 @@ 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