mirror of
https://github.com/hinto-janai/cuprate.git
synced 2024-12-22 19:49:33 +00:00
lints
This commit is contained in:
parent
a97367167b
commit
6f85531966
5 changed files with 41 additions and 36 deletions
41
Cargo.lock
generated
41
Cargo.lock
generated
|
@ -1150,6 +1150,27 @@ dependencies = [
|
|||
"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]]
|
||||
name = "cuprate-txpool"
|
||||
version = "0.0.0"
|
||||
|
@ -3380,26 +3401,6 @@ dependencies = [
|
|||
"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]]
|
||||
name = "thiserror"
|
||||
version = "1.0.66"
|
||||
|
|
|
@ -1 +1,7 @@
|
|||
# <https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms>
|
||||
upper-case-acronyms-aggressive = true
|
||||
|
||||
# <https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown>
|
||||
doc-valid-idents = [
|
||||
"RandomX", ".."
|
||||
]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "tests-compat"
|
||||
name = "cuprate-tests-compat"
|
||||
version = "0.0.0"
|
||||
edition = "2021"
|
||||
description = "Compatability tests between `cuprated` and `monerod`"
|
||||
|
@ -10,10 +10,11 @@ keywords = ["cuprate", "tests", "compat"]
|
|||
|
||||
|
||||
[dependencies]
|
||||
cuprate-constants = { workspace = true, features = ["build",] }
|
||||
cuprate-consensus-rules = { 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"] }
|
||||
futures = { workspace = true, features = ["std"] }
|
||||
monero-serai = { workspace = true }
|
||||
|
@ -27,11 +28,4 @@ reqwest = { workspace = true, features = ["json"] }
|
|||
randomx-rs = { workspace = true }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[profile.release]
|
||||
panic = "unwind"
|
||||
lto = true
|
||||
strip = "none"
|
||||
codegen-units = 1
|
||||
opt-level = 3
|
||||
workspace = true
|
|
@ -2,9 +2,17 @@ use std::num::{NonZeroU64, NonZeroUsize};
|
|||
|
||||
use clap::Parser;
|
||||
|
||||
/// `cuprate` <-> `monerod` compatability tester.
|
||||
/// `cuprate` <-> `monerod` compatibility tester.
|
||||
#[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 {
|
||||
/// Name of the person to greet
|
||||
#[arg(short, long, default_value_t = String::from("http://127.0.0.1:18081"))]
|
||||
|
|
|
@ -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")]
|
||||
|
||||
mod cli;
|
||||
|
|
Loading…
Reference in a new issue