rpc: add initial crates (#146)

* add `rpc/` crates

* rpc: fix `monero-rpc-server` -> `monero-rpc-types`

* rpc: add skeleton `rpc/json-rpc`

* remove `cuprate-rpc-server`, add `json-rpc`
This commit is contained in:
hinto-janai 2024-06-05 10:35:08 -04:00 committed by GitHub
parent 0622237d19
commit 6df67bb9d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 67 additions and 1 deletions

12
Cargo.lock generated
View file

@ -527,6 +527,10 @@ dependencies = [
"tracing",
]
[[package]]
name = "cuprate-rpc-interface"
version = "0.0.0"
[[package]]
name = "cuprate-test-utils"
version = "0.1.0"
@ -1198,6 +1202,10 @@ dependencies = [
"wasm-bindgen",
]
[[package]]
name = "json-rpc"
version = "0.0.0"
[[package]]
name = "keccak"
version = "0.1.5"
@ -1392,6 +1400,10 @@ dependencies = [
"thiserror",
]
[[package]]
name = "monero-rpc-types"
version = "0.0.0"
[[package]]
name = "monero-serai"
version = "0.1.4-alpha"

View file

@ -21,6 +21,9 @@ members = [
"pruning",
"test-utils",
"types",
"rpc/json-rpc",
"rpc/monero-rpc-types",
"rpc/cuprate-rpc-interface",
]
[profile.release]

View file

@ -1 +1,4 @@
# TODO
# RPC
This directory contains Monero RPC types and Cuprate RPC's libraries.
<!-- TODO: link to architecture book section. -->

View file

@ -0,0 +1,15 @@
[package]
name = "cuprate-rpc-interface"
version = "0.0.0"
edition = "2021"
description = "Cuprate's RPC interface library"
license = "MIT"
authors = ["hinto-janai"]
repository = "https://github.com/Cuprate/cuprate/tree/main/rpc/cuprate-rpc-interface"
keywords = ["cuprate", "rpc", "interface"]
[features]
[dependencies]
[dev-dependencies]

View file

@ -0,0 +1 @@

15
rpc/json-rpc/Cargo.toml Normal file
View file

@ -0,0 +1,15 @@
[package]
name = "json-rpc"
version = "0.0.0"
edition = "2021"
description = "JSON-RPC 2.0 implementation"
license = "MIT"
authors = ["hinto-janai"]
repository = "https://github.com/Cuprate/cuprate/tree/main/rpc/json-rpc"
keywords = ["json", "rpc"]
[features]
[dependencies]
[dev-dependencies]

1
rpc/json-rpc/src/lib.rs Normal file
View file

@ -0,0 +1 @@

View file

@ -0,0 +1,15 @@
[package]
name = "monero-rpc-types"
version = "0.0.0"
edition = "2021"
description = "Monero RPC types"
license = "MIT"
authors = ["hinto-janai"]
repository = "https://github.com/Cuprate/cuprate/tree/main/rpc/monero-rpc-types"
keywords = ["monero", "rpc", "types"]
[features]
[dependencies]
[dev-dependencies]

View file

@ -0,0 +1 @@