-
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.
feat: Rust client implementation (#268)
Implementation of the Rust client. For more info see the [README](https://github.com/v0-e/v4-clients/blob/rust-client/v4-client-rs/README.md). --------- Signed-off-by: v0-e <xyz.vieira@gmail.com> Co-authored-by: Denis Kolodin <deniskolodin@gmail.com> Co-authored-by: Maksim Ryndin <maksim.ryndin@nethermind.io>
- Loading branch information
1 parent
9b3a6f6
commit 4dbe4c7
Showing
83 changed files
with
12,819 additions
and
1 deletion.
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
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,49 @@ | ||
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 | ||
defaults: | ||
run: | ||
working-directory: ./v4-client-rs | ||
|
||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- 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.