This commit is contained in:
hinto.janai 2024-12-15 23:31:37 -05:00
parent a97367167b
commit 6f85531966
No known key found for this signature in database
GPG key ID: D47CE05FA175A499
5 changed files with 41 additions and 36 deletions

41
Cargo.lock generated
View file

@ -1150,6 +1150,27 @@ dependencies = [
"tokio-util", "tokio-util",
] ]
[[package]]
name = "cuprate-tests-compat"
version = "0.0.0"
dependencies = [
"clap",
"crossbeam",
"cuprate-consensus-rules",
"cuprate-constants",
"cuprate-cryptonight",
"futures",
"hex",
"hex-literal",
"monero-serai",
"randomx-rs",
"rayon",
"reqwest",
"serde",
"serde_json",
"tokio",
]
[[package]] [[package]]
name = "cuprate-txpool" name = "cuprate-txpool"
version = "0.0.0" version = "0.0.0"
@ -3380,26 +3401,6 @@ dependencies = [
"windows-sys 0.59.0", "windows-sys 0.59.0",
] ]
[[package]]
name = "tests-compat"
version = "0.0.0"
dependencies = [
"clap",
"crossbeam",
"cuprate-consensus-rules",
"cuprate-cryptonight",
"futures",
"hex",
"hex-literal",
"monero-serai",
"randomx-rs",
"rayon",
"reqwest",
"serde",
"serde_json",
"tokio",
]
[[package]] [[package]]
name = "thiserror" name = "thiserror"
version = "1.0.66" version = "1.0.66"

View file

@ -1 +1,7 @@
# <https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms>
upper-case-acronyms-aggressive = true upper-case-acronyms-aggressive = true
# <https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown>
doc-valid-idents = [
"RandomX", ".."
]

View file

@ -1,5 +1,5 @@
[package] [package]
name = "tests-compat" name = "cuprate-tests-compat"
version = "0.0.0" version = "0.0.0"
edition = "2021" edition = "2021"
description = "Compatability tests between `cuprated` and `monerod`" description = "Compatability tests between `cuprated` and `monerod`"
@ -10,10 +10,11 @@ keywords = ["cuprate", "tests", "compat"]
[dependencies] [dependencies]
cuprate-constants = { workspace = true, features = ["build",] }
cuprate-consensus-rules = { workspace = true } cuprate-consensus-rules = { workspace = true }
cuprate-cryptonight = { workspace = true } cuprate-cryptonight = { workspace = true }
clap = { workspace = true, features = ["cargo", "derive", "default"] } clap = { workspace = true, features = ["cargo", "derive", "default", "string"] }
crossbeam = { workspace = true, features = ["std"] } crossbeam = { workspace = true, features = ["std"] }
futures = { workspace = true, features = ["std"] } futures = { workspace = true, features = ["std"] }
monero-serai = { workspace = true } monero-serai = { workspace = true }
@ -28,10 +29,3 @@ randomx-rs = { workspace = true }
[lints] [lints]
workspace = true workspace = true
[profile.release]
panic = "unwind"
lto = true
strip = "none"
codegen-units = 1
opt-level = 3

View file

@ -2,9 +2,17 @@ use std::num::{NonZeroU64, NonZeroUsize};
use clap::Parser; use clap::Parser;
/// `cuprate` <-> `monerod` compatability tester. /// `cuprate` <-> `monerod` compatibility tester.
#[derive(Parser, Debug)] #[derive(Parser, Debug)]
#[command(about, long_about = None)] #[command(
about,
long_about = None,
long_version = format!(
"{} {}",
clap::crate_version!(),
cuprate_constants::build::COMMIT
),
)]
pub struct Args { pub struct Args {
/// Name of the person to greet /// Name of the person to greet
#[arg(short, long, default_value_t = String::from("http://127.0.0.1:18081"))] #[arg(short, long, default_value_t = String::from("http://127.0.0.1:18081"))]

View file

@ -1,7 +1,3 @@
#![allow(
clippy::doc_markdown,
reason = "TODO: add exception to doc clippy for `RandomX`"
)]
#![allow(unreachable_pub, reason = "This is a binary, everything `pub` is ok")] #![allow(unreachable_pub, reason = "This is a binary, everything `pub` is ok")]
mod cli; mod cli;