mirror of
https://github.com/hinto-janai/cuprate.git
synced 2024-12-22 19:49:33 +00:00
monero-rpc-types
-> cuprate-rpc-types
This commit is contained in:
parent
81aad9641f
commit
1c12d6d2cf
13 changed files with 18 additions and 19 deletions
22
Cargo.lock
generated
22
Cargo.lock
generated
|
@ -542,6 +542,17 @@ dependencies = [
|
|||
name = "cuprate-rpc-interface"
|
||||
version = "0.0.0"
|
||||
|
||||
[[package]]
|
||||
name = "cuprate-rpc-types"
|
||||
version = "0.0.0"
|
||||
dependencies = [
|
||||
"monero-serai",
|
||||
"paste",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"strum",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cuprate-test-utils"
|
||||
version = "0.1.0"
|
||||
|
@ -1554,17 +1565,6 @@ dependencies = [
|
|||
"thiserror",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "monero-rpc-types"
|
||||
version = "0.0.0"
|
||||
dependencies = [
|
||||
"monero-serai",
|
||||
"paste",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"strum",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "monero-serai"
|
||||
version = "0.1.4-alpha"
|
||||
|
|
|
@ -19,12 +19,11 @@ members = [
|
|||
"storage/cuprate-txpool",
|
||||
"storage/database",
|
||||
"pruning",
|
||||
"rpc/monero-rpc-types",
|
||||
"test-utils",
|
||||
"types",
|
||||
"rpc/json-rpc",
|
||||
"rpc/monero-rpc-types",
|
||||
"rpc/cuprate-rpc-interface",
|
||||
"rpc/types",
|
||||
"rpc/interface",
|
||||
]
|
||||
|
||||
[profile.release]
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
[package]
|
||||
name = "monero-rpc-types"
|
||||
name = "cuprate-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"]
|
||||
repository = "https://github.com/Cuprate/cuprate/tree/main/rpc/cuprate-rpc-types"
|
||||
keywords = ["cuprate", "rpc", "types", "monero"]
|
||||
|
||||
[features]
|
||||
default = []
|
|
@ -11,7 +11,7 @@ This crate ports the types used in Monero's RPC interface, including:
|
|||
This crate's types are split in the following manner:
|
||||
|
||||
1. This crate has 3 modules:
|
||||
- The root module (`monero_rpc_types`)
|
||||
- The root module (`cuprate_rpc_types`)
|
||||
- [`req`] (request types)
|
||||
- [`resp`] (response types)
|
||||
1. Miscellaneous types are found in the root module, e.g. [`Status`]
|
|
@ -18,7 +18,7 @@ use strum::{
|
|||
///
|
||||
/// ## Serialization and string formatting
|
||||
/// ```rust
|
||||
/// # use monero_rpc_types::*;
|
||||
/// # use cuprate_rpc_types::*;
|
||||
/// use serde_json::to_string;
|
||||
/// use strum::AsRefStr;
|
||||
///
|
Loading…
Reference in a new issue