Skip to content

Commit 0a56051

Browse files
committed
Merge remote-tracking branch 'origin/main' into iamquang95/dkg/sync
# Conflicts: # crates/dkg/src/lib.rs
2 parents 902e70f + e8099c8 commit 0a56051

47 files changed

Lines changed: 3299 additions & 318 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.githooks/pre-push

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ if ! cargo deny check; then
88
exit 1
99
fi
1010

11+
# Unused dependency check
12+
if ! cargo machete; then
13+
echo "❌ Unused dependencies detected (run 'cargo machete')"
14+
exit 1
15+
fi
16+
1117
# Formatting check
1218
if ! cargo +nightly fmt --all -- --check; then
1319
echo "❌ Formatting issues (run 'cargo +nightly fmt --all')"

.github/workflows/dependency-audit.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,11 @@ jobs:
3030
- name: Install `cargo-deny`
3131
run: cargo install cargo-deny@0.19.0
3232

33+
- name: Install `cargo-machete`
34+
run: cargo install cargo-machete@0.9.2
35+
3336
- name: Run `cargo-deny` audit
3437
run: cargo deny check
38+
39+
- name: Run `cargo-machete`
40+
run: cargo machete

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@ lcov.info
2424
coverage.json
2525

2626
.charon*
27+
.omx
2728

2829
.peerinfo*
30+
31+
test-infra/sszfixtures/sszfixtures

CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The easiest way to set up the development environment is using [Nix](https://nix
1010
nix develop
1111
```
1212

13-
This automatically provides all required dependencies (Rust toolchain, Protobuf, oas3-gen, cargo-deny) and configures git hooks.
13+
This automatically provides all required dependencies (Rust toolchain, Protobuf, oas3-gen, cargo-deny, cargo-machete) and configures git hooks.
1414

1515
### Manual Setup
1616

@@ -20,6 +20,7 @@ If you prefer not to use Nix, install the following manually:
2020
* [Protobuf](https://protobuf.dev/installation/)
2121
* [Docker](https://www.docker.com/)
2222
* [cargo-deny](https://github.com/EmbarkStudios/cargo-deny) - `cargo install cargo-deny@0.19.0`
23+
* [cargo-machete](https://github.com/bnjbvr/cargo-machete) - `cargo install cargo-machete@0.9.2`
2324
* [oas3-gen](https://github.com/eklipse2k8/oas3-gen) - `cargo install oas3-gen@0.24.0`
2425

2526
Then install the pre-push git hook:

0 commit comments

Comments
 (0)