Skip to content

Commit

Permalink
Merge pull request #507 from matthiasbeyer/check-external-types
Browse files Browse the repository at this point in the history
Check external types
  • Loading branch information
matthiasbeyer authored Dec 15, 2023
2 parents b3bda2c + 52f5b80 commit 4457cff
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/external-types.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on: [push, pull_request]

name: Check-external-types

jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/[email protected]

- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly

- name: Install cargo-check-external-types
run: cargo install --locked cargo-check-external-types

- name: Run cargo check-external-types
run: cargo check-external-types --config ./external-types.toml
10 changes: 10 additions & 0 deletions external-types.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
allowed_external_types = [
"convert_case::case::Case",
"nom::error::ErrorKind",
"serde::de::Deserialize",
"serde::de::Deserializer",
"serde::de::Error",
"serde::ser::Error",
"serde::ser::Serialize",
]

0 comments on commit 4457cff

Please sign in to comment.