-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Denis Kolodin <deniskolodin@gmail.com> Co-authored-by: Maksim Ryndin <maksim.ryndin@nethermind.io>
- Loading branch information
1 parent
62b40ab
commit 52348e2
Showing
82 changed files
with
12,820 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: "[v4-client-rs] Build, Fmt, Clippy, Audit, & Test" | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'v4-client-rs/**' | ||
push: | ||
paths: | ||
- 'v4-client-rs/**' | ||
branches: | ||
- main | ||
- "release/*" | ||
|
||
jobs: | ||
test: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
components: rustfmt, clippy | ||
|
||
- name: Install protoc # for dev dependencies only | ||
run: sudo apt install -y protobuf-compiler | ||
|
||
- name: Build | ||
run: cargo build | ||
|
||
- name: Check formatting | ||
run: cargo fmt -- --check | ||
|
||
- name: Linter | ||
shell: bash | ||
run: | | ||
cargo clippy -- -D warnings | ||
- name: Install audit | ||
shell: bash | ||
run: | | ||
cargo install cargo-deny | ||
- name: Security audit, licenses | ||
shell: bash | ||
run: | | ||
cargo deny check licenses advisories sources | ||
- name: Test | ||
run: cargo test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
target | ||
Cargo.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
"client", | ||
] | ||
|
||
[workspace.package] | ||
version = "0.1.0" | ||
edition = "2021" | ||
license = "AGPL-3.0" | ||
|
||
[workspace.dependencies] | ||
anyhow = "1" | ||
async-trait = "0.1" | ||
bigdecimal = { version = "0.4", features = ["serde"] } | ||
derive_more = { version = "1", features = ["full"] } | ||
log = "0.4" | ||
thiserror = "1" | ||
tokio = { version = "1.39", features = ["full"] } | ||
v4-proto-rs = { git = "https://github.com/therustmonk/v4-chain", rev = "a6265bbf4cd9812382a89d32c9304c08551f7bae" } |
Oops, something went wrong.