Commit 00a9db0
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, thiserror1 parent 8c87348 commit 00a9db0
File tree
7 files changed
+727
-499
lines changed- server/json-rpc
- src
7 files changed
+727
-499
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | | - | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments