Skip to content

Commit 00a9db0

Browse files
committed
server/json-rpc: Replace jsonrpsee with axum
Migrate the JSON-RPC admin server from jsonrpsee to axum/tower, which are already used elsewhere in the codebase (server/graphman). This removes the jsonrpsee dependency while maintaining full protocol compatibility. Changes: - Add jsonrpc.rs: JSON-RPC 2.0 types (request, response, error, ID) - Add error.rs: Error code mapping from SubgraphRegistrarError - Add handlers.rs: Request dispatch and method handlers - Add server.rs: Axum-based HTTP server with graceful shutdown - Update lib.rs: Module structure with public exports - Update Cargo.toml: Replace jsonrpsee with axum, serde_json, thiserror
1 parent 8c87348 commit 00a9db0

File tree

7 files changed

+727
-499
lines changed

7 files changed

+727
-499
lines changed

Cargo.lock

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

server/json-rpc/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ version.workspace = true
44
edition.workspace = true
55

66
[dependencies]
7+
axum = { workspace = true }
78
graph = { path = "../../graph" }
8-
jsonrpsee = { version = "0.15.1", features = ["http-server"] }
99
serde = { workspace = true }
10+
serde_json = { workspace = true }
11+
slog = { workspace = true }
12+
thiserror = { workspace = true }
13+
tokio = { workspace = true }

0 commit comments

Comments
 (0)