Skip to content

Commit

Permalink
Merge pull request #1216 from EspressoSystems/remove-unused-deps
Browse files Browse the repository at this point in the history
Removed unused udeps, workflow to find unused dependencies
  • Loading branch information
nomaxg authored Mar 8, 2024
2 parents 7f510c6 + 5ea2b33 commit 160318a
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/workflows/contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ env:

jobs:
contracts:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- name: Install Nix
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/unused-deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on: [push]

name: udeps

env:
RUSTFLAGS: '--cfg async_executor_impl="async-std" --cfg async_channel_impl="async-std"'

jobs:
check:
name: Rust project
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true

- name: Run cargo-udeps
uses: aig787/cargo-udeps-action@v1
with:
version: 'latest'
args: '--all-targets'
9 changes: 3 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions contracts/rust/adapter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ ark-ed-on-bn254 = { workspace = true }
ark-ff = { workspace = true }
ark-poly = { workspace = true }
ark-serialize = { workspace = true }
ark-srs = { git = "https://github.com/alxiong/ark-srs", tag = "v0.1.0" }
ark-std = { workspace = true }
contract-bindings = { path = "../../../contract-bindings" }
diff-test-bn254 = { git = "https://github.com/EspressoSystems/solidity-bn254.git" }
Expand All @@ -25,9 +24,6 @@ jf-utils = { workspace = true }
num-bigint = { version = "0.4", default-features = false }
num-traits = { version = "0.2", default-features = false }

[dev-dependencies]
hotshot-stake-table = { workspace = true }

[[bin]]
name = "eval-domain"
path = "src/bin/eval_domain.rs"
2 changes: 0 additions & 2 deletions sequencer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ testing = ["hotshot-testing"]
[dev-dependencies]
espresso-macros = { git = "https://github.com/EspressoSystems/espresso-macros.git", tag = "0.1.0" }
hotshot-query-service = { workspace = true, features = ["testing"] }
hotshot-testing = { workspace = true }
portpicker = "0.1.1"
rand = "0.8.5"
tempfile = "3.9.0"
Expand Down Expand Up @@ -45,7 +44,6 @@ hotshot = { workspace = true }
hotshot-orchestrator = { workspace = true }
hotshot-query-service = { workspace = true }
hotshot-stake-table = { workspace = true }
hotshot-state-prover = { path = "../hotshot-state-prover" }
hotshot-task = { workspace = true }

# Dependencies for feature `testing`
Expand Down

0 comments on commit 160318a

Please sign in to comment.