forked from propeller-heads/fynd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
164 lines (138 loc) · 4.04 KB
/
Copy pathCargo.toml
File metadata and controls
164 lines (138 loc) · 4.04 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
[workspace.package]
version = "0.59.0"
[package]
name = "fynd"
version.workspace = true
edition = "2021"
description = "High-performance DeFi route-finding engine — embeddable library and CLI"
license = "MIT"
[features]
default = ["metrics"]
# Enables the Prometheus metrics exporter on a separate HTTP server.
# Disable with `--no-default-features` to omit Actix-Web and the Prometheus
# recorder from the binary (e.g. for embedded/minimal builds).
metrics = ["dep:actix-web", "dep:metrics-exporter-prometheus"]
[dependencies]
fynd-rpc = { workspace = true }
fynd-core = { workspace = true }
# CLI
clap = { workspace = true }
# Async runtime
tokio = { workspace = true }
# Error handling
anyhow = { workspace = true }
thiserror = { workspace = true }
# HTTP (for metrics server, gated behind the `metrics` feature)
actix-web = { workspace = true, optional = true }
# Observability
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
opentelemetry = { workspace = true }
opentelemetry_sdk = { workspace = true }
opentelemetry-otlp = { workspace = true }
tracing-opentelemetry = { workspace = true }
metrics-exporter-prometheus = { workspace = true, optional = true }
# Serialization (for OpenAPI spec output)
serde_json = { workspace = true }
# OpenAPI (for ApiDoc::openapi() trait)
utoipa = { workspace = true }
# Tycho (for Chain type in CLI)
tycho-simulation = { workspace = true }
# Encoding/formatting for derive-connector-tokens
chrono = { workspace = true }
hex = { workspace = true }
[dev-dependencies]
rstest = { workspace = true }
reqwest = { workspace = true }
alloy = { workspace = true, features = [
"providers",
"signer-local",
"rpc-types-eth",
"eip712",
"node-bindings",
] }
alloy-chains = "0.2"
dialoguer = "0.11"
serde = { workspace = true }
serde_json = { workspace = true }
num-bigint = { workspace = true }
num-traits = { workspace = true }
tycho-execution = { workspace = true }
bytes = { workspace = true }
fynd-client = { workspace = true }
[workspace]
members = [
"fynd-core",
"fynd-rpc",
"fynd-rpc-types",
"clients/rust",
"tools/benchmark",
"tools/fynd-swap-cli",
]
resolver = "2"
[workspace.dependencies]
bytes = "1"
alloy = { version = "1", features = [
"consensus",
"dyn-abi",
"eip712",
"network",
"providers",
"provider-http",
"rpc-types-eth",
] }
# HTTP
actix-web = "4"
reqwest = { version = "0.12", features = ["json"] }
# Async
tokio = { version = "1", features = ["full", "sync"] }
futures = "0.3"
# CLI
clap = { version = "4.5", features = ["derive", "env"] }
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_with = { version = "3", features = ["std"] }
toml = "0.8"
# OpenAPI / Swagger UI
utoipa = { version = "5", features = ["actix_extras"] }
utoipa-swagger-ui = { version = "9", features = ["actix-web"] }
# Error handling
thiserror = "1"
anyhow = "1"
# Observability
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "registry"] }
opentelemetry = "0.27"
opentelemetry_sdk = { version = "0.27", features = ["rt-tokio"] }
opentelemetry-otlp = { version = "0.27", features = ["tonic"] }
tracing-opentelemetry = "0.28"
tracing-actix-web = "0.7"
metrics = "0.24"
metrics-exporter-prometheus = "0.16"
# Tycho
tycho-simulation = ">=0.254.0"
tycho-execution = "<=0.175.0"
typetag = "0.2"
# Graph algorithms
petgraph = "0.6"
# Utilities
num-bigint = { version = "0.4", features = ["serde"] }
num-traits = "0.2"
num_cpus = "1.16"
lazy_static = { version = "1.5.0", default-features = false }
uuid = { version = "1", features = ["v4", "serde"] }
tokio-stream = "0.1.18"
tokio-tungstenite = { version = "0.28", features = ["native-tls"] }
async-channel = "2.5.0"
async-trait = "0.1"
chrono = "0.4"
itertools = "0.14.0"
hex = "0.4"
# Internal crates
fynd-core = { path = "fynd-core", version = "0.59.0" }
fynd-rpc = { path = "fynd-rpc", version = "0.59.0" }
fynd-rpc-types = { path = "fynd-rpc-types", version = "0.59.0" }
fynd-client = { path = "clients/rust", version = "0.59.0" }
# Dev dependencies
rstest = "0.18"