Skip to content

Commit 85b19a2

Browse files
committed
remove bench-utils feature
1 parent c7c7812 commit 85b19a2

File tree

5 files changed

+6
-18
lines changed

5 files changed

+6
-18
lines changed

.github/workflows/base_benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ jobs:
6969
--thresholds-reset \
7070
--github-actions "$GITHUB_TOKEN" \
7171
--err \
72-
"cargo bench --bench ${{ matrix.suite }} --features bench-utils"
72+
"cargo bench --bench ${{ matrix.suite }}"

.github/workflows/pr_benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ jobs:
6464
--start-point-reset \
6565
--github-actions "$GITHUB_TOKEN" \
6666
--err \
67-
"cargo bench --bench ${{ matrix.suite }} --features bench-utils"
67+
"cargo bench --bench ${{ matrix.suite }}"

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"rust-analyzer.cargo.features": ["test-utils", "bench-utils"],
2+
"rust-analyzer.cargo.features": ["test-utils"],
33
"rust-analyzer.rustfmt.extraArgs": ["+nightly"]
44
}

CONTRIBUTING.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ Uncomment the `[[bin]]` section:
209209
[[bin]]
210210
name = "generate_dump"
211211
path = "benches/generate_dump.rs"
212-
required-features = ["bench-utils"]
213212
```
214213

215214
### 2. Enable `node-bindings` for `alloy`
@@ -224,13 +223,11 @@ alloy = { version = "1.1.2", features = ["node-bindings"] }
224223
### 3. Run the generator
225224
226225
```bash
227-
cargo run --release --bin generate_dump --features bench-utils -- \
226+
cargo run --release --bin generate_dump -- \
228227
--events 100000 \
229228
--output benches/dumps/state_100000.json
230229
```
231230
232-
**Note**: The `--features bench-utils` flag is required to enable the dependencies needed by the generator.
233-
234231
This creates:
235232
- `benches/dumps/state_100000.json.gz` (compressed state dump)
236233
- `benches/dumps/state_100000.metadata.json` (metadata)

Cargo.toml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ publish = true
1919
exclude = [".github/", ".vscode/", ".config/", ".cargo/", "benches/", "tests/"]
2020

2121
[dependencies]
22-
alloy = { version = "1.1.2" }
23-
tokio = { version = "1.48" }
22+
alloy = "1.1.2"
23+
tokio = "1.48"
2424
futures = "0.3.31"
2525
anyhow = "1.0"
2626
thiserror = "2.0.17"
@@ -48,28 +48,19 @@ all = "warn"
4848
[[bench]]
4949
name = "historic_scanning"
5050
harness = false
51-
required-features = ["bench-utils"]
5251

5352
[[bench]]
5453
name = "latest_events_scanning"
5554
harness = false
56-
required-features = ["bench-utils"]
5755

5856
# uncomment only when new dumps need to be generated, see CONTRIBUTING.md
5957
# [[bin]]
6058
# name = "generate_dump"
6159
# path = "benches/generate_dump.rs"
62-
# required-features = ["bench-utils"]
6360

6461
[features]
6562
test-utils = ["alloy/node-bindings"]
6663
tracing = []
67-
bench-utils = [
68-
"dep:serde",
69-
"dep:serde_json",
70-
"dep:flate2",
71-
"alloy/node-bindings",
72-
]
7364

7465
[profile.release]
7566
lto = "thin"

0 commit comments

Comments
 (0)