chore: remove cargo-udeps-related workflow and metadata (#6889)

This commit is contained in:
DaniPopes
2024-02-29 17:07:25 +02:00
committed by GitHub
parent 19ff1fb35c
commit b00e3f98be
9 changed files with 0 additions and 91 deletions

View File

@ -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

View File

@ -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

View File

@ -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"]

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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