mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: move metrics dep to dev-dep (#694)
This commit is contained in:
@ -13,10 +13,10 @@ proc-macro = true
|
||||
proc-macro2 = "1.0"
|
||||
syn = { version = "1.0", features = ["extra-traits"] }
|
||||
quote = "1.0"
|
||||
metrics = "0.20.1"
|
||||
regex = "1.6.0"
|
||||
once_cell = "1.15.0"
|
||||
|
||||
[dev-dependencies]
|
||||
metrics = "0.20.1"
|
||||
trybuild = "1.0"
|
||||
serial_test = "0.10"
|
||||
|
||||
@ -1,11 +1,10 @@
|
||||
use std::{collections::HashMap, sync::Mutex};
|
||||
|
||||
use metrics::{
|
||||
set_recorder, Counter, Gauge, Histogram, Key, KeyName, Recorder, SharedString, Unit,
|
||||
};
|
||||
use once_cell::sync::Lazy;
|
||||
use reth_metrics_derive::Metrics;
|
||||
use serial_test::serial;
|
||||
use std::{collections::HashMap, sync::Mutex};
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Metrics)]
|
||||
@ -23,7 +22,7 @@ struct CustomMetrics {
|
||||
histo: Histogram,
|
||||
}
|
||||
|
||||
static RECORDER: Lazy<TestRecorder> = Lazy::new(|| TestRecorder::new());
|
||||
static RECORDER: Lazy<TestRecorder> = Lazy::new(TestRecorder::new);
|
||||
|
||||
#[test]
|
||||
#[serial]
|
||||
|
||||
Reference in New Issue
Block a user