Skip to content

Commit

Permalink
chore: introduce cargo sort for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
zsluedem committed Feb 13, 2023
1 parent b013967 commit dc5b3b4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
toolchain: stable
components: rustfmt, clippy

- name: Install cargo sort
run: |
cargo install cargo-sort
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2

Expand Down
14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,18 @@ clap = { version = "4", features = ["derive"] }
dirs = "4.0"
educe = { version = "0.4", features = ["Debug", "Default"] }
ethereum-interfaces = { git = "https://github.com/ledgerwatch/interfaces" }
ethers = { git = "https://github.com/gakonst/ethers-rs.git", rev = "c60990d7b6e6b3034f1e50b27b495aeda30e35e8", features = ["ethers-solc"] }
ethers = { git = "https://github.com/gakonst/ethers-rs.git", rev = "c60990d7b6e6b3034f1e50b27b495aeda30e35e8", features = ["ethers-solc"] }
expanded-pathbuf = "0.1"
hex = { version = "0.4.3", default-features = false, features = ["std"] }
jsonrpsee = { version = "0.16", features = ["server", "macros"] }
page_size = "0.5.0"
parking_lot = "0.12"
prost = "0.11"
regex = "1"
reth-db = { git = "https://github.com/paradigmxyz/reth.git", rev = "314ea0883b1062375ad86577be1fccc39233739d" }
reth-libmdbx = { git = "https://github.com/paradigmxyz/reth.git", rev = "314ea0883b1062375ad86577be1fccc39233739d" }
ron = "0.8"
rustc-hex = "^2.0.1"
serde = "1"
serde_json = "1"
tokio = { version = "1.18", features = ["full"] }
Expand All @@ -33,19 +37,15 @@ tonic = { version = "0.8", default-features = false, features = [
] }
tracing = "0.1"
tracing-subscriber = "0.3"
rustc-hex="^2.0.1"
reth-db = { git ="https://github.com/paradigmxyz/reth.git" , rev = "314ea0883b1062375ad86577be1fccc39233739d"}
reth-libmdbx = { git ="https://github.com/paradigmxyz/reth.git" , rev = "314ea0883b1062375ad86577be1fccc39233739d"}
page_size = "0.5.0"

[dev-dependencies]
tempdir = "0.3.7"

[build-dependencies]
anyhow = "1"
ethers = { git = "https://github.com/gakonst/ethers-rs.git", rev = "c60990d7b6e6b3034f1e50b27b495aeda30e35e8", features = ["ethers-solc"] }
protobuf-src = "1.1.0"
ethers = { git = "https://github.com/gakonst/ethers-rs.git", rev = "c60990d7b6e6b3034f1e50b27b495aeda30e35e8", features = ["ethers-solc"] }
prost-build = "0.11"
protobuf-src = "1.1.0"
tonic-build = "0.8"

[[bin]]
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ format:
lint:
cargo fmt --all -- --check
cargo clippy -- -D warnings -A clippy::derive_partial_eq_without_eq -D clippy::unwrap_used -D clippy::uninlined_format_args
cargo sort --check

clean:
cd thirdparty/account-abstraction && yarn clean && cd ../..
Expand Down

0 comments on commit dc5b3b4

Please sign in to comment.