Skip to content

Commit 9eaaa20

Browse files
Add udeps to CI (#179)
* add udeps to CI * remove unused deps
1 parent e984cae commit 9eaaa20

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,15 @@ jobs:
5555
run: rustup update stable
5656
- name: Check rustdoc links
5757
run: RUSTDOCFLAGS="--deny broken_intra_doc_links" cargo doc --verbose --workspace --no-deps --document-private-items
58+
cargo-udeps:
59+
name: cargo-udeps
60+
runs-on: ubuntu-latest
61+
needs: cargo-fmt
62+
steps:
63+
- uses: actions/checkout@v3
64+
- name: Install Rust nightly
65+
run: rustup toolchain install nightly
66+
- name: Install cargo-udeps
67+
run: cargo install cargo-udeps --locked --force
68+
- name: Run cargo udeps to identify unused crates in the dependency graph
69+
run: cargo +nightly udeps --tests --all-targets --release

Cargo.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ exclude = [".gitignore", ".github/*"]
1414
[dependencies]
1515
enr = { version = "0.8.1", features = ["k256", "ed25519"] }
1616
tokio = { version = "1.15.0", features = ["net", "sync", "macros", "rt"] }
17-
tokio-stream = "0.1.8"
18-
tokio-util = { version = "0.6.9", features = ["time"] }
1917
libp2p-core = { version = "0.36.0", optional = true }
2018
zeroize = { version = "1.4.3", features = ["zeroize_derive"] }
2119
futures = "0.3.19"
@@ -43,10 +41,6 @@ more-asserts = "0.2.2"
4341
[dev-dependencies]
4442
rand_07 = { package = "rand", version = "0.7" }
4543
quickcheck = "0.9.2"
46-
env_logger = "0.9.0"
47-
hex-literal = "0.3.4"
48-
simple_logger = "1.16.0"
49-
tokio-util = { version = "0.6.9", features = ["time"] }
5044
tokio = { version = "1.15.0", features = ["full"] }
5145
rand_xorshift = "0.3.0"
5246
rand_core = "0.6.3"

0 commit comments

Comments
 (0)