mirror of
https://github.com/hinto-janai/cuprate.git
synced 2024-11-16 07:47:46 +00:00
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:
parent
0622237d19
commit
6df67bb9d3
9 changed files with 67 additions and 1 deletions
12
Cargo.lock
generated
12
Cargo.lock
generated
|
@ -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"
|
||||
|
|
|
@ -21,6 +21,9 @@ members = [
|
|||
"pruning",
|
||||
"test-utils",
|
||||
"types",
|
||||
"rpc/json-rpc",
|
||||
"rpc/monero-rpc-types",
|
||||
"rpc/cuprate-rpc-interface",
|
||||
]
|
||||
|
||||
[profile.release]
|
||||
|
|
|
@ -1 +1,4 @@
|
|||
# TODO
|
||||
# RPC
|
||||
This directory contains Monero RPC types and Cuprate RPC's libraries.
|
||||
|
||||
<!-- TODO: link to architecture book section. -->
|
||||
|
|
15
rpc/cuprate-rpc-interface/Cargo.toml
Normal file
15
rpc/cuprate-rpc-interface/Cargo.toml
Normal 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]
|
1
rpc/cuprate-rpc-interface/src/lib.rs
Normal file
1
rpc/cuprate-rpc-interface/src/lib.rs
Normal file
|
@ -0,0 +1 @@
|
|||
|
15
rpc/json-rpc/Cargo.toml
Normal file
15
rpc/json-rpc/Cargo.toml
Normal 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
1
rpc/json-rpc/src/lib.rs
Normal file
|
@ -0,0 +1 @@
|
|||
|
15
rpc/monero-rpc-types/Cargo.toml
Normal file
15
rpc/monero-rpc-types/Cargo.toml
Normal 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]
|
1
rpc/monero-rpc-types/src/lib.rs
Normal file
1
rpc/monero-rpc-types/src/lib.rs
Normal file
|
@ -0,0 +1 @@
|
|||
|
Loading…
Reference in a new issue