mirror of
https://github.com/hinto-janai/cuprate.git
synced 2025-03-25 08:39:07 +00:00
add base files, deps
This commit is contained in:
parent
009abe0959
commit
9fa5d24e3a
8 changed files with 85 additions and 0 deletions
6
Cargo.lock
generated
6
Cargo.lock
generated
|
@ -1397,6 +1397,12 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "monero-rpc-types"
|
name = "monero-rpc-types"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
|
dependencies = [
|
||||||
|
"monero-serai",
|
||||||
|
"paste",
|
||||||
|
"serde",
|
||||||
|
"serde_json",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "monero-serai"
|
name = "monero-serai"
|
||||||
|
|
|
@ -9,7 +9,12 @@ repository = "https://github.com/Cuprate/cuprate/tree/main/rpc/monero-rpc-types
|
||||||
keywords = ["monero", "rpc", "types"]
|
keywords = ["monero", "rpc", "types"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
default = ["dep:serde"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
monero-serai = { workspace = true }
|
||||||
|
paste = { workspace = true }
|
||||||
|
serde = { workspace = true, optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
serde_json = { workspace = true }
|
||||||
|
|
11
rpc/monero-rpc-types/src/binary.rs
Normal file
11
rpc/monero-rpc-types/src/binary.rs
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
//! TODO
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------- Import
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------- TODO
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------- Tests
|
||||||
|
#[cfg(test)]
|
||||||
|
mod test {
|
||||||
|
// use super::*;
|
||||||
|
}
|
11
rpc/monero-rpc-types/src/data.rs
Normal file
11
rpc/monero-rpc-types/src/data.rs
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
//! TODO
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------- Import
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------- TODO
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------- Tests
|
||||||
|
#[cfg(test)]
|
||||||
|
mod test {
|
||||||
|
// use super::*;
|
||||||
|
}
|
11
rpc/monero-rpc-types/src/json.rs
Normal file
11
rpc/monero-rpc-types/src/json.rs
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
//! TODO
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------- Import
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------- TODO
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------- Tests
|
||||||
|
#[cfg(test)]
|
||||||
|
mod test {
|
||||||
|
// use super::*;
|
||||||
|
}
|
|
@ -93,3 +93,10 @@
|
||||||
clippy::too_many_lines
|
clippy::too_many_lines
|
||||||
)
|
)
|
||||||
)]
|
)]
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------- Use
|
||||||
|
pub mod binary;
|
||||||
|
pub mod data;
|
||||||
|
pub mod json;
|
||||||
|
pub mod macros;
|
||||||
|
pub mod mix;
|
||||||
|
|
23
rpc/monero-rpc-types/src/macros.rs
Normal file
23
rpc/monero-rpc-types/src/macros.rs
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
//! Macros.
|
||||||
|
//!
|
||||||
|
//! These generate repetitive documentation, tests, etc.
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------- Documentation macros
|
||||||
|
/// TODO
|
||||||
|
macro_rules! serde_doc_test {
|
||||||
|
(
|
||||||
|
$type:ty, // TODO
|
||||||
|
) => {
|
||||||
|
#[doc = "TODO"]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
/// TODO
|
||||||
|
macro_rules! monero_ref {
|
||||||
|
(
|
||||||
|
$monero_code_link:literal, // TODO
|
||||||
|
$monero_rpc_doc_link:literal, // TODO
|
||||||
|
) => {
|
||||||
|
#[doc = "TODO"]
|
||||||
|
};
|
||||||
|
}
|
11
rpc/monero-rpc-types/src/mix.rs
Normal file
11
rpc/monero-rpc-types/src/mix.rs
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
//! TODO
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------- Import
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------- TODO
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------- Tests
|
||||||
|
#[cfg(test)]
|
||||||
|
mod test {
|
||||||
|
// use super::*;
|
||||||
|
}
|
Loading…
Reference in a new issue