Skip to content

Commit

Permalink
chore(ci): use check-external-types separate config file
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Oct 19, 2023
1 parent bce9f02 commit 3f0a756
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/external-types.toml
Original file line number Diff line number Diff line change
@@ -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",
]
17 changes: 0 additions & 17 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f0a756

Please sign in to comment.