Skip to content

Commit

Permalink
Add Rust client
Browse files Browse the repository at this point in the history
Co-authored-by: Denis Kolodin <deniskolodin@gmail.com>
Co-authored-by: Maksim Ryndin <maksim.ryndin@nethermind.io>
  • Loading branch information
3 people committed Oct 15, 2024
1 parent 62b40ab commit 52348e2
Show file tree
Hide file tree
Showing 82 changed files with 12,820 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/rs-build-fmt-clippy-audit-test.yml
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
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ Python client for dYdX Chain. Developed and maintained by the Nethermind team.
- [Saul M.](https://github.com/samtin0x)
- [Piotr P.](https://github.com/piwonskp)

## v4-client-rs
Rust client for dYdX Chain. Developed and maintained by the Nethermind team.
- [Emanuel V.](https://github.com/v0-e)
- [Denis K.](https://github.com/therustmonk)
- [Maksim R.](https://github.com/maksimryndin)

## v4-client-cpp (Third Party Client)
To pull the latest C++ client, run `git submodule update --init --recursive`

Expand Down
2 changes: 2 additions & 0 deletions v4-client-rs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
target
Cargo.lock
20 changes: 20 additions & 0 deletions v4-client-rs/Cargo.toml
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" }
Loading

0 comments on commit 52348e2

Please sign in to comment.