Skip to content

Commit 5cbf0d8

Browse files
committed
feat: Add drift-gateway-types crate for gateway controller resquest/response types
1 parent 487861c commit 5cbf0d8

File tree

9 files changed

+515
-436
lines changed

9 files changed

+515
-436
lines changed

Cargo.lock

Lines changed: 27 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
[workspace]
2+
members = [".", "crates/drift-gateway-types"]
3+
resolver = "2"
4+
5+
[workspace.dependencies]
6+
drift-rs = { git = "https://github.com/drift-labs/drift-rs", rev = "c6a3647" }
7+
serde = { version = "1", features = ["derive"] }
8+
serde_json = "1"
9+
rust_decimal = "1"
10+
tokio = { version = "1", features = ["full"] }
11+
reqwest = { version = "0.12", features = ["json"] }
12+
thiserror = "2"
13+
nanoid = "0.4"
14+
faster-hex = "0.10"
15+
116
[package]
217
name = "drift-gateway"
318
version = "1.5.3"
@@ -6,25 +21,27 @@ edition = "2021"
621
[dependencies]
722
actix-web = "*"
823
argh = "*"
9-
drift-rs = { git = "https://github.com/drift-labs/drift-rs", rev = "c6a3647" }
24+
drift-rs = { workspace = true }
1025
base64 = "0.22.1"
1126
env_logger = "*"
12-
faster-hex = "0.10.0"
27+
faster-hex = { workspace = true }
1328
futures-util = "*"
1429
log = "*"
15-
nanoid = "0.4.0"
16-
reqwest = { version = "*", features = ["json"] }
17-
rust_decimal = "*"
18-
serde = { version = "*", features = ["derive"] }
19-
serde_json = "*"
30+
nanoid = { workspace = true }
31+
reqwest = { workspace = true }
32+
rust_decimal = { workspace = true }
33+
serde = { workspace = true }
34+
serde_json = { workspace = true }
2035
sha256 = "1.6.0"
2136
solana-account-decoder-client-types = "2"
2237
solana-rpc-client-api = "2"
2338
solana-sdk = "2"
2439
solana-transaction-status = "2"
25-
thiserror = "*"
26-
tokio = {version ="*", features = ["full"]}
40+
thiserror = { workspace = true }
41+
tokio = { workspace = true }
2742
tokio-tungstenite = "*"
43+
# Add dependency on our types crate
44+
drift-gateway-types = { path = "crates/drift-gateway-types" }
2845

2946
[profile.release]
3047
panic = 'abort'
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[package]
2+
name = "drift-gateway-types"
3+
version = "0.1.0"
4+
edition = "2021"
5+
description = "Shared types for Drift Gateway API"
6+
license = "Apache-2.0"
7+
readme = "README.md"
8+
repository = "https://github.com/drift-labs/gateway"
9+
homepage = "https://drift.trade"
10+
categories = ["cryptography::cryptocurrencies", "api-bindings"]
11+
keywords = ["solana", "dex", "drift", "sdk"]
12+
13+
[dependencies]
14+
drift-rs = { workspace = true }
15+
faster-hex = { workspace = true }
16+
serde = { workspace = true }
17+
serde_json = { workspace = true }
18+
rust_decimal = { workspace = true }
19+
nanoid = { workspace = true }

0 commit comments

Comments
 (0)