-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathCargo.toml
More file actions
69 lines (64 loc) · 2.09 KB
/
Cargo.toml
File metadata and controls
69 lines (64 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[package]
name = "drift-rs"
version = "1.0.0-alpha.16"
edition = "2021"
build = "build.rs"
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/drift-labs/drift-rs"
homepage = "https://drift.trade"
description = """
Rust SDK for Drift V2 Protocol on the Solana blockchain.
"""
categories = ["cryptography::cryptocurrencies", "api-bindings"]
keywords = ["solana", "dex", "drift", "sdk"]
[lib]
path = "crates/src/lib.rs"
[features]
# run integration tests against RPC nodes
rpc_tests = []
# make more variables public - use with caution
unsafe_pub = []
titan = ["titan-swap-api-client"]
# enable order event recording in DLOB
dlob_dbg = []
[dependencies]
abi_stable = { version = "0.11", default-features = false }
ahash = "0.8.12"
anchor-lang = { version = "0.32.1", features = ["derive"] }
arrayvec = "0.7.6"
base64 = "0.22"
bytemuck = "1.17"
crossbeam = "0.8.4"
dashmap = "6"
env_logger = "0.11"
futures-util = "0.3"
fxhash = "0.2.1"
hex = "0.4"
jupiter-swap-api-client = { git = "https://github.com/drift-labs/jupiter-swap-api-client", branch = "patch/2025-12-28", package = "jupiter-swap-api-client" }
log = "0.4"
pythnet-sdk = "2"
regex = "1.10"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
solana-account-decoder-client-types = "2"
solana-rpc-client = "2"
solana-rpc-client-api = "2"
solana-sdk = "2"
solana-transaction-status = "2"
spl-associated-token-account = "7.0"
thiserror = "1"
tokio = { version = "1.48", features = ["full"] }
tokio-stream = "0.1.17"
tokio-tungstenite = { version = "0.28", features = ["native-tls"] }
yellowstone-grpc-client = { git = "https://github.com/rpcpool/yellowstone-grpc", rev = "660797" }
yellowstone-grpc-proto = { git = "https://github.com/rpcpool/yellowstone-grpc", rev = "660797" }
drift-pubsub-client = { version = "0.1.1", path = "crates/pubsub-client" }
titan-swap-api-client = { git = "https://github.com/0xahzam/titan-swap-api-client.git", optional = true }
[dev-dependencies]
bytes = "1"
hex-literal = "0.4"
solana-account-decoder = "2"
toml = "0.8"
[build-dependencies]
drift-idl-gen = { version = "0.2", path = "crates/drift-idl-gen" }