Skip to content

Commit

Permalink
chore(derive): Remove udeps (#462)
Browse files Browse the repository at this point in the history
* chore(derive): Remove udeps

* fix CI
  • Loading branch information
clabby authored Aug 27, 2024
1 parent 952390d commit f4a8e6a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 92 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
- name: cargo llvm-cov
run: cargo llvm-cov nextest --locked --workspace --lcov --output-path lcov.info
run: cargo llvm-cov nextest --locked --workspace --lcov --output-path lcov.info --features test-utils
- name: Record Rust version
run: echo "RUST=$(rustc --version)" >> "$GITHUB_ENV"
- name: Upload to codecov.io
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rust_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
cache-on-failure: true
- uses: taiki-e/install-action@nextest
- name: cargo test
run: cargo nextest run --release --workspace --all --locked
run: cargo nextest run --release --workspace --all --all-features --locked
cargo-lint:
runs-on: ubuntu-latest
timeout-minutes: 20
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
with:
cache-on-failure: true
- name: build benches
run: cargo bench --no-run --workspace --all
run: cargo bench --no-run --workspace --all --features test-utils
- name: chown target
run: |
sudo chown -R $(id -u):$(id -g) ./target
Expand Down
67 changes: 1 addition & 66 deletions Cargo.lock

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

30 changes: 12 additions & 18 deletions crates/derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,48 +18,44 @@ op-alloy-consensus = { workspace = true, features = ["k256"] }

# Other Workspace Dependencies
lru.workspace = true
spin.workspace = true
anyhow.workspace = true
tracing.workspace = true
async-trait.workspace = true
revm = { workspace = true, optional = true }

# Local
kona-primitives = { path = "../primitives", version = "0.0.1", default-features = false }

# External
hashbrown = "0.14.5"
unsigned-varint = "0.8.0"
miniz_oxide = "0.7.3"
miniz_oxide = "0.8.0"
brotli = { version = "6.0.0", default-features = false }
alloc-no-stdlib = "2.0.4"

# `serde` feature dependencies
serde = { version = "1.0.203", default-features = false, features = ["derive"], optional = true }

# `online` feature dependencies
c-kzg = { version = "1.0.2", default-features = false, optional = true }
sha2 = { version = "0.10.8", default-features = false, optional = true }
alloy-transport = { version = "0.2", default-features = false, optional = true }
alloy-provider = { version = "0.2", default-features = false, optional = true }
alloy-transport-http = { version = "0.2", optional = true }
reqwest = { version = "0.12.4", default-features = false, optional = true }

# `metrics` feature dependencies
lazy_static = { version = "1.5.0", optional = true }
prometheus = { version = "0.13.4", features = ["process"], optional = true }

# `test-utils` feature dependencies
alloy-node-bindings = { version = "0.2", default-features = false, optional = true }
spin = { workspace = true, optional = true }
tracing-subscriber = { version = "0.3.18", optional = true }
alloy-node-bindings = { version = "0.2", default-features = false, optional = true }
alloy-transport-http = { version = "0.2", optional = true }
alloy-rpc-client = { version = "0.2", default-features = false, optional = true }

[dev-dependencies]
tokio = { version = "1.38", features = ["full"] }
proptest = "1.4.0"
tracing-subscriber = "0.3.18"
alloy-node-bindings = { version = "0.2", default-features = false }
alloy-rpc-client = { version = "0.2", default-features = false }
serde_json = { version = "1.0.117", default-features = false }

[features]
Expand All @@ -73,20 +69,18 @@ serde = [
]
metrics = ["dep:prometheus", "dep:lazy_static"]
online = [
"dep:revm",
"dep:c-kzg",
"dep:sha2",
"dep:alloy-provider",
"dep:alloy-transport",
"dep:alloy-transport-http",
"dep:reqwest",
"alloy-provider/reqwest",
"alloy-rpc-client/reqwest",
"alloy-transport-http/reqwest",
"alloy-consensus/serde",
"c-kzg/serde",
"revm/serde",
"revm/c-kzg",
"kona-primitives/online",
]
test-utils = ["dep:alloy-node-bindings", "dep:tracing-subscriber", "dep:alloy-rpc-client"]
test-utils = [
"dep:spin",
"dep:alloy-transport-http",
"dep:alloy-node-bindings",
"dep:tracing-subscriber",
"dep:alloy-rpc-client",
"alloy-transport-http/reqwest"
]
6 changes: 1 addition & 5 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,12 @@ default:
@just --list

# Run all tests
tests: test test-online test-docs
tests: test test-docs

# Test for the native target with all features
test *args='':
cargo nextest run --workspace --all --all-features $@

# Run online tests
test-online:
cargo nextest run --workspace --all --features online

# Lint the workspace for all available targets
lint: lint-native lint-cannon lint-asterisc lint-docs

Expand Down

0 comments on commit f4a8e6a

Please sign in to comment.