diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 98dc5a6..e81fbca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,6 +36,20 @@ jobs: - name: Check TOML files are formatted run: taplo fmt --check . + machete: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Install active toolchain + run: rustup install + + - name: Install cargo-machete + run: cargo install cargo-machete + + - name: Check for unused dependencies + run: cargo machete + lint: runs-on: ubuntu-latest timeout-minutes: 60 diff --git a/examples/program_deployment/Cargo.toml b/examples/program_deployment/Cargo.toml index 725febf..e1a6db4 100644 --- a/examples/program_deployment/Cargo.toml +++ b/examples/program_deployment/Cargo.toml @@ -4,11 +4,8 @@ version = "0.1.0" edition = "2024" [dependencies] -nssa_core.workspace = true nssa.workspace = true wallet.workspace = true -key_protocol.workspace = true tokio = { workspace = true, features = ["macros"] } clap.workspace = true -serde.workspace = true diff --git a/examples/program_deployment/methods/guest/Cargo.toml b/examples/program_deployment/methods/guest/Cargo.toml index 4e5ac88..245bc5d 100644 --- a/examples/program_deployment/methods/guest/Cargo.toml +++ b/examples/program_deployment/methods/guest/Cargo.toml @@ -6,7 +6,6 @@ edition = "2024" [dependencies] nssa_core.workspace = true -serde.workspace = true hex.workspace = true bytemuck.workspace = true risc0-zkvm.workspace = true diff --git a/sequencer_core/Cargo.toml b/sequencer_core/Cargo.toml index 158d436..06164e9 100644 --- a/sequencer_core/Cargo.toml +++ b/sequencer_core/Cargo.toml @@ -13,7 +13,6 @@ mempool.workspace = true base58.workspace = true anyhow.workspace = true serde.workspace = true -rand.workspace = true tempfile.workspace = true chrono.workspace = true log.workspace = true diff --git a/test_program_methods/guest/Cargo.toml b/test_program_methods/guest/Cargo.toml index 2c65dc4..1761335 100644 --- a/test_program_methods/guest/Cargo.toml +++ b/test_program_methods/guest/Cargo.toml @@ -7,4 +7,3 @@ edition = "2024" nssa_core.workspace = true risc0-zkvm.workspace = true -serde = { workspace = true, default-features = false } diff --git a/wallet/Cargo.toml b/wallet/Cargo.toml index d34203f..e0d7815 100644 --- a/wallet/Cargo.toml +++ b/wallet/Cargo.toml @@ -15,7 +15,6 @@ env_logger.workspace = true log.workspace = true serde.workspace = true tokio.workspace = true -tempfile.workspace = true clap.workspace = true base64.workspace = true bytemuck.workspace = true