Skip to content

Commit

Permalink
add to workspace crates + CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ss-es committed Feb 12, 2025
1 parent 83b0ee9 commit 012494b
Show file tree
Hide file tree
Showing 26 changed files with 64 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@ env:
RUST_LOG: info,libp2p=off

jobs:
verify-workspace-hack:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout Repository

- name: Install cargo-hakari from crates.io
uses: baptiste0928/cargo-install@v3
with:
crate: cargo-hakari

- name: Run cargo-hakari
run: |
cargo hakari generate --diff
lint:
runs-on: ubuntu-latest
steps:
Expand Down
23 changes: 23 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ tracing = { workspace = true }
url = { workspace = true }
vbs = { workspace = true }
vec1 = { workspace = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }

[dev-dependencies]
jf-signature = { workspace = true, features = ["bls"] }
Expand Down
1 change: 1 addition & 0 deletions client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ surf-disco = { workspace = true }
tokio = { workspace = true }
tracing = { workspace = true }
vbs = { workspace = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }
1 change: 1 addition & 0 deletions contract-bindings-alloy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ edition = "2021"

[dependencies]
alloy = { workspace = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }
1 change: 1 addition & 0 deletions contract-bindings-ethers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ edition = "2021"
[dependencies]
ethers = { version = "2", default-features = false, features = ["abigen"] }
serde = "1"
workspace-hack = { version = "0.1", path = "../workspace-hack" }
1 change: 1 addition & 0 deletions contracts/rust/adapter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jf-utils = { workspace = true }
num-bigint = { version = "0.4", default-features = false }
num-traits = { version = "0.2", default-features = false }
serde = { workspace = true }
workspace-hack = { version = "0.1", path = "../../../workspace-hack" }

[dev-dependencies]
rand = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions contracts/rust/diff-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jf-plonk = { workspace = true }
jf-signature = { workspace = true }
jf-utils = { workspace = true }
sha3 = { version = "0.10.8", default-features = false }
workspace-hack = { version = "0.1", path = "../../../workspace-hack" }

[[bin]]
name = "diff-test"
Expand Down
1 change: 1 addition & 0 deletions contracts/rust/gen-vk-contract/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ hotshot-contract-adapter = { workspace = true }
hotshot-stake-table = { workspace = true }
hotshot-state-prover = { workspace = true }
jf-pcs = { workspace = true }
workspace-hack = { version = "0.1", path = "../../../workspace-hack" }
1 change: 1 addition & 0 deletions ethers-conv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ edition = { workspace = true }
[dependencies]
alloy = { workspace = true }
ethers = { workspace = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
cargo-audit
cargo-edit
cargo-hack
cargo-hakari
cargo-nextest
cargo-sort
typos
Expand Down
1 change: 1 addition & 0 deletions hotshot-builder-core-refactored/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ tokio = { workspace = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
vbs = { workspace = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }

[dev-dependencies]
hotshot-example-types = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions hotshot-builder-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ tokio = { workspace = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
vbs = { workspace = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }

[dev-dependencies]
hotshot-example-types = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions hotshot-events-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ toml = { workspace = true }
tracing = { workspace = true }
tracing-test = "0.2"
vbs = { workspace = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }

[dev-dependencies]
hotshot-example-types = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions hotshot-query-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ hotshot-example-types = { workspace = true }
portpicker = { version = "0.1", optional = true }
rand = { version = "0.8", optional = true }
tempfile = { version = "3.10", optional = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }

# Dependencies enabled by feature "backtrace-on-stack-overflow".
#
Expand Down
1 change: 1 addition & 0 deletions hotshot-state-prover/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ toml = "0.8"
tracing = { workspace = true }
url = { workspace = true }
vbs = { workspace = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }

[dev-dependencies]
sequencer-utils = { path = "../utils", features = ["testing"] }
Expand Down
1 change: 1 addition & 0 deletions marketplace-builder-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ tokio = { workspace = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
vbs = { workspace = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }

[dev-dependencies]
hotshot-example-types = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions marketplace-builder-shared/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ tracing-subscriber = { workspace = true }
url = { workspace = true }
vbs = { workspace = true }
vec1 = { workspace = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }

[dev-dependencies]
portpicker = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions marketplace-builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ tokio = { workspace = true }
tracing = { workspace = true }
url = { workspace = true }
vbs = { workspace = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }

[dev-dependencies]
hotshot-query-service = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions marketplace-solver/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ tokio = { workspace = true }
toml = { workspace = true }
tracing = { workspace = true }
vbs = { workspace = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }

[dev-dependencies]
marketplace-solver = { path = ".", features = [ "testing" ] }
Expand Down
1 change: 1 addition & 0 deletions node-metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ toml = { workspace = true }
tracing = { workspace = true }
url = { workspace = true }
vbs = { workspace = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }
1 change: 1 addition & 0 deletions request-response/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ thiserror = { workspace = true }
tokio = { workspace = true }
tokio-util = { version = "0.7", default-features = false, features = ["rt"] }
tracing = { workspace = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }
1 change: 1 addition & 0 deletions sequencer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ tracing-subscriber = { workspace = true }
url = { workspace = true }
vbs = { workspace = true }
vec1 = { workspace = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }

[package.metadata.cargo-udeps.ignore]
normal = ["hotshot-testing"]
Expand Down
3 changes: 3 additions & 0 deletions tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ reqwest = { workspace = true, features = ["json"] }
surf-disco = { workspace = true }
tokio = { workspace = true }
vbs = { workspace = true }

[dependencies]
workspace-hack = { version = "0.1", path = "../workspace-hack" }
1 change: 1 addition & 0 deletions types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ tower-service = { version = "0.3", default-features = false }
tracing = { workspace = true }
url = { workspace = true }
vbs = { workspace = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }

[dev-dependencies]
espresso-types = { path = ".", features = [ "testing" ] }
Expand Down
1 change: 1 addition & 0 deletions utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ toml = { workspace = true }
tower-service = { workspace = true }
tracing = "0.1.37"
url = "2.3.1"
workspace-hack = { version = "0.1", path = "../workspace-hack" }

0 comments on commit 012494b

Please sign in to comment.