diff --git a/.github/SANITY_UNUSED_DEPS_ISSUE_TEMPLATE.md b/.github/SANITY_UNUSED_DEPS_ISSUE_TEMPLATE.md deleted file mode 100644 index 76f6690e13bc..000000000000 --- a/.github/SANITY_UNUSED_DEPS_ISSUE_TEMPLATE.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -title: "chore: some installed deps are not needed" -labels: C-debt, A-dependencies ---- - -Some dependencies specified in `Cargo.toml` are not needed. - -Check the [unused dependencies sanity check]({{env.WORKFLOW_URL}}) workflow for details. - -This issue was raised by the workflow at `.github/workflows/sanity.yml`. - -> **Note** -> If this is a false positive, please refer to the [`cargo-udeps` docs][cargo-udeps-docs] on how to ignore the dependencies. - -[cargo-udeps-docs]: https://github.com/est31/cargo-udeps#ignoring-some-of-the-dependencies diff --git a/.github/workflows/sanity.yml b/.github/workflows/sanity.yml deleted file mode 100644 index fdcc7be4fb3d..000000000000 --- a/.github/workflows/sanity.yml +++ /dev/null @@ -1,34 +0,0 @@ -# Runs a series of sanity checks for crate consumers. - -name: sanity - -on: - workflow_dispatch: {} - # Once per day at 00:00 UTC - schedule: - - cron: "0 0 * * *" - -env: - CARGO_TERM_COLOR: always - -jobs: - unused-dependencies: - runs-on: ubuntu-latest - strategy: - matrix: - network: ["ethereum", "optimism"] - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@nightly - - uses: taiki-e/install-action@cargo-udeps - - name: Check for unused dependencies - run: cargo udeps --lib --features "jemalloc,${{ matrix.network }}" - - uses: JasonEtco/create-an-issue@v2 - if: ${{ failure() }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - WORKFLOW_URL: - ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} - with: - update_existing: true - filename: .github/SANITY_UNUSED_DEPS_ISSUE_TEMPLATE.md diff --git a/Cargo.toml b/Cargo.toml index c8488c6d1098..b19d1700e999 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -275,7 +275,3 @@ proptest-derive = "0.4" serial_test = "3" similar-asserts = "1.5.0" test-fuzz = "5" - -[workspace.metadata.cargo-udeps.ignore] -# ignored because this is mutually exclusive with the optimism payload builder via feature flags -normal = ["reth-ethereum-payload-builder", "reth-node-ethereum"] diff --git a/bin/reth/Cargo.toml b/bin/reth/Cargo.toml index afc71932e235..6ca8ac67ca89 100644 --- a/bin/reth/Cargo.toml +++ b/bin/reth/Cargo.toml @@ -12,12 +12,6 @@ default-run = "reth" [lints] workspace = true -[package.metadata.cargo-udeps.ignore] -normal = [ - # Used for diagrams in docs - "aquamarine", -] - [dependencies] # reth reth-config.workspace = true diff --git a/crates/blockchain-tree/Cargo.toml b/crates/blockchain-tree/Cargo.toml index 065c02474c55..2060160d828c 100644 --- a/crates/blockchain-tree/Cargo.toml +++ b/crates/blockchain-tree/Cargo.toml @@ -10,12 +10,6 @@ repository.workspace = true [lints] workspace = true -[package.metadata.cargo-udeps.ignore] -normal = [ - # Used for diagrams in docs - "aquamarine", -] - [dependencies] # reth reth-primitives.workspace = true diff --git a/crates/net/network/Cargo.toml b/crates/net/network/Cargo.toml index 10cc4b354d5c..147dbd738f06 100644 --- a/crates/net/network/Cargo.toml +++ b/crates/net/network/Cargo.toml @@ -11,12 +11,6 @@ description = "Ethereum network support" [lints] workspace = true -[package.metadata.cargo-udeps.ignore] -normal = [ - # Used for diagrams in docs - "aquamarine", -] - [dependencies] # reth reth-interfaces.workspace = true diff --git a/crates/stages/Cargo.toml b/crates/stages/Cargo.toml index fe6a109dacee..052f748e8ea4 100644 --- a/crates/stages/Cargo.toml +++ b/crates/stages/Cargo.toml @@ -11,12 +11,6 @@ description = "Staged syncing primitives used in reth." [lints] workspace = true -[package.metadata.cargo-udeps.ignore] -normal = [ - # Used for diagrams in docs - "aquamarine", -] - [dependencies] # reth reth-primitives.workspace = true diff --git a/crates/storage/codecs/derive/Cargo.toml b/crates/storage/codecs/derive/Cargo.toml index 82388718743c..825d0ce64459 100644 --- a/crates/storage/codecs/derive/Cargo.toml +++ b/crates/storage/codecs/derive/Cargo.toml @@ -11,14 +11,6 @@ readme = "../README.md" [lints] workspace = true -[package.metadata.cargo-udeps.ignore] -normal = [ - # Used in proc macros - "serde", - # Used in proc macros - "parity-scale-codec", -] - [lib] proc-macro = true diff --git a/crates/transaction-pool/Cargo.toml b/crates/transaction-pool/Cargo.toml index faf8a541d670..027d7a727734 100644 --- a/crates/transaction-pool/Cargo.toml +++ b/crates/transaction-pool/Cargo.toml @@ -11,12 +11,6 @@ description = "Transaction pool implementation" [lints] workspace = true -[package.metadata.cargo-udeps.ignore] -normal = [ - # Used for diagrams in docs - "aquamarine", -] - [dependencies] # reth reth-eth-wire.workspace = true