Skip to content

Commit 9a133dc

Browse files
committed
MVP Axum server
1 parent 7a7fe96 commit 9a133dc

File tree

6 files changed

+235
-36
lines changed

6 files changed

+235
-36
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ alloy-rlp = "0.3.4"
105105
anyhow = "1"
106106
arbitrary = { version = "1", features = ["derive"] }
107107
async-channel = "1.9.0"
108-
axum = "0.7.7"
108+
axum = "0.8"
109109
beacon_chain = { path = "beacon_node/beacon_chain" }
110110
beacon_node = { path = "beacon_node" }
111111
beacon_node_fallback = { path = "validator_client/beacon_node_fallback" }
@@ -257,6 +257,7 @@ tokio = { version = "1", features = [
257257
] }
258258
tokio-stream = { version = "0.1", features = ["sync"] }
259259
tokio-util = { version = "0.7", features = ["codec", "compat", "time"] }
260+
tower-http = { version = "0.6.6", features = ["cors"] }
260261
tracing = "0.1.40"
261262
tracing-appender = "0.2"
262263
tracing-core = "0.1"
@@ -278,6 +279,7 @@ validator_store = { path = "validator_client/validator_store" }
278279
validator_test_rig = { path = "testing/validator_test_rig" }
279280
warp = { version = "0.3.7", default-features = false, features = ["tls"] }
280281
warp_utils = { path = "common/warp_utils" }
282+
warpdrive = { git = "http://github.com/macladson/warpdrive", tag = "v0.1.0" }
281283
workspace_members = { path = "common/workspace_members" }
282284
xdelta3 = { git = "http://github.com/sigp/xdelta3-rs", rev = "4db64086bb02e9febb584ba93b9d16bb2ae3825a" }
283285
zeroize = { version = "1", features = ["zeroize_derive", "serde"] }

beacon_node/http_api/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ edition = { workspace = true }
66
autotests = false # using a single test binary compiles faster
77

88
[dependencies]
9+
axum = { workspace = true }
910
beacon_chain = { workspace = true }
1011
beacon_processor = { workspace = true }
1112
bs58 = "0.4.0"
@@ -48,6 +49,7 @@ tree_hash = { workspace = true }
4849
types = { workspace = true }
4950
warp = { workspace = true }
5051
warp_utils = { workspace = true }
52+
warpdrive = { workspace = true }
5153

5254
[dev-dependencies]
5355
genesis = { workspace = true }

0 commit comments

Comments
 (0)