mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
perf: do not compile traces in release mode (#2652)
This commit is contained in:
committed by
GitHub
parent
5dfbc9cf01
commit
ae2b0954c6
@ -60,3 +60,6 @@ incremental = false
|
|||||||
[patch.crates-io]
|
[patch.crates-io]
|
||||||
# patched for quantity U256 responses <https://github.com/recmo/uint/issues/224>
|
# patched for quantity U256 responses <https://github.com/recmo/uint/issues/224>
|
||||||
ruint = { git = "https://github.com/paradigmxyz/uint" }
|
ruint = { git = "https://github.com/paradigmxyz/uint" }
|
||||||
|
|
||||||
|
[workspace.dependencies]
|
||||||
|
tracing = { version = "^0.1.0", default-features = false }
|
||||||
|
|||||||
@ -52,7 +52,7 @@ secp256k1 = { version = "0.27.0", features = [
|
|||||||
] }
|
] }
|
||||||
|
|
||||||
# tracing
|
# tracing
|
||||||
tracing = "0.1"
|
tracing = { workspace = true }
|
||||||
|
|
||||||
# io
|
# io
|
||||||
fdlimit = "0.2.1"
|
fdlimit = "0.2.1"
|
||||||
@ -94,3 +94,6 @@ backon = "0.4"
|
|||||||
hex = "0.4"
|
hex = "0.4"
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
pretty_assertions = "1.3.0"
|
pretty_assertions = "1.3.0"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
only-info-logs = ["tracing/release_max_level_info"]
|
||||||
|
|||||||
@ -22,7 +22,7 @@ reth-provider = { path = "../storage/provider" }
|
|||||||
# common
|
# common
|
||||||
parking_lot = { version = "0.12"}
|
parking_lot = { version = "0.12"}
|
||||||
lru = "0.10"
|
lru = "0.10"
|
||||||
tracing = "0.1"
|
tracing = { workspace = true }
|
||||||
|
|
||||||
# mics
|
# mics
|
||||||
aquamarine = "0.3.0"
|
aquamarine = "0.3.0"
|
||||||
|
|||||||
@ -21,7 +21,7 @@ reth-transaction-pool = { path = "../../transaction-pool" }
|
|||||||
futures-util = "0.3"
|
futures-util = "0.3"
|
||||||
tokio = { version = "1", features = ["sync", "time"] }
|
tokio = { version = "1", features = ["sync", "time"] }
|
||||||
tokio-stream = "0.1"
|
tokio-stream = "0.1"
|
||||||
tracing = "0.1"
|
tracing = { workspace = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
reth-interfaces = { path = "../../interfaces", features = ["test-utils"] }
|
reth-interfaces = { path = "../../interfaces", features = ["test-utils"] }
|
||||||
|
|||||||
@ -25,7 +25,7 @@ tokio-stream = "0.1.10"
|
|||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
tracing = "0.1"
|
tracing = { workspace = true }
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
metrics = "0.20.1"
|
metrics = "0.20.1"
|
||||||
schnellru = "0.2"
|
schnellru = "0.2"
|
||||||
|
|||||||
@ -27,7 +27,7 @@ tokio-stream = "0.1.11"
|
|||||||
# misc
|
# misc
|
||||||
auto_impl = "1.0"
|
auto_impl = "1.0"
|
||||||
thiserror = "1.0.37"
|
thiserror = "1.0.37"
|
||||||
tracing = "0.1"
|
tracing = { workspace = true }
|
||||||
rand = "0.8.5"
|
rand = "0.8.5"
|
||||||
arbitrary = { version = "1.1.7", features = ["derive"], optional = true }
|
arbitrary = { version = "1.1.7", features = ["derive"], optional = true }
|
||||||
secp256k1 = { version = "0.27.0", default-features = false, features = [
|
secp256k1 = { version = "0.27.0", default-features = false, features = [
|
||||||
|
|||||||
@ -34,7 +34,7 @@ tokio = { version = "1", features = ["io-util", "net", "time"] }
|
|||||||
tokio-stream = "0.1"
|
tokio-stream = "0.1"
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
tracing = "0.1"
|
tracing = { workspace = true }
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
hex = "0.4"
|
hex = "0.4"
|
||||||
rand = { version = "0.8", optional = true }
|
rand = { version = "0.8", optional = true }
|
||||||
|
|||||||
@ -35,7 +35,7 @@ async-trait = "0.1"
|
|||||||
linked_hash_set = "0.1"
|
linked_hash_set = "0.1"
|
||||||
schnellru = "0.2"
|
schnellru = "0.2"
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
tracing = "0.1"
|
tracing = { workspace = true }
|
||||||
parking_lot = "0.12"
|
parking_lot = "0.12"
|
||||||
serde = { version = "1.0", optional = true }
|
serde = { version = "1.0", optional = true }
|
||||||
serde_with = { version = "2.1.0", optional = true }
|
serde_with = { version = "2.1.0", optional = true }
|
||||||
|
|||||||
@ -23,7 +23,7 @@ tokio = { version = "1.0", features = ["sync"] }
|
|||||||
tokio-stream = "0.1"
|
tokio-stream = "0.1"
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
tracing = "0.1.37"
|
tracing = { workspace = true }
|
||||||
metrics = "0.20.1"
|
metrics = "0.20.1"
|
||||||
rayon = "1.6.0"
|
rayon = "1.6.0"
|
||||||
|
|
||||||
|
|||||||
@ -19,7 +19,7 @@ tokio-util = { version = "0.7.4", features = ["codec"] }
|
|||||||
pin-project = "1.0"
|
pin-project = "1.0"
|
||||||
|
|
||||||
educe = "0.4.19"
|
educe = "0.4.19"
|
||||||
tracing = "0.1.37"
|
tracing = { workspace = true }
|
||||||
|
|
||||||
# HeaderBytes
|
# HeaderBytes
|
||||||
generic-array = "0.14.6"
|
generic-array = "0.14.6"
|
||||||
|
|||||||
@ -26,7 +26,7 @@ tokio-util = { version = "0.7.4", features = ["io", "codec"] }
|
|||||||
futures = "0.3.24"
|
futures = "0.3.24"
|
||||||
tokio-stream = "0.1.11"
|
tokio-stream = "0.1.11"
|
||||||
pin-project = "1.0"
|
pin-project = "1.0"
|
||||||
tracing = "0.1.37"
|
tracing = { workspace = true }
|
||||||
snap = "1.0.5"
|
snap = "1.0.5"
|
||||||
smol_str = "0.1"
|
smol_str = "0.1"
|
||||||
metrics = "0.20.1"
|
metrics = "0.20.1"
|
||||||
|
|||||||
@ -19,7 +19,7 @@ igd = { git = "https://github.com/stevefan1999-personal/rust-igd", features = [
|
|||||||
] }
|
] }
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
tracing = "0.1"
|
tracing = { workspace = true }
|
||||||
pin-project-lite = "0.2.9"
|
pin-project-lite = "0.2.9"
|
||||||
tokio = { version = "1", features = ["time"] }
|
tokio = { version = "1", features = ["time"] }
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
|
|||||||
@ -52,7 +52,7 @@ reth-metrics-derive = { path = "../../metrics/metrics-derive" }
|
|||||||
# misc
|
# misc
|
||||||
auto_impl = "1"
|
auto_impl = "1"
|
||||||
aquamarine = "0.3.0"
|
aquamarine = "0.3.0"
|
||||||
tracing = "0.1"
|
tracing = { workspace = true }
|
||||||
fnv = "1.0"
|
fnv = "1.0"
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
parking_lot = "0.12"
|
parking_lot = "0.12"
|
||||||
|
|||||||
@ -30,4 +30,4 @@ futures-core = "0.3"
|
|||||||
futures-util = "0.3"
|
futures-util = "0.3"
|
||||||
|
|
||||||
## misc
|
## misc
|
||||||
tracing = "0.1"
|
tracing = { workspace = true }
|
||||||
@ -30,7 +30,7 @@ futures-util = "0.3"
|
|||||||
## misc
|
## misc
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
sha2 = { version = "0.10", default-features = false }
|
sha2 = { version = "0.10", default-features = false }
|
||||||
tracing = "0.1.37"
|
tracing = { workspace = true }
|
||||||
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
|||||||
@ -37,7 +37,7 @@ secp256k1 = { version = "0.27.0", default-features = false, features = [
|
|||||||
crc = "3"
|
crc = "3"
|
||||||
|
|
||||||
# tracing
|
# tracing
|
||||||
tracing = "0.1"
|
tracing = { workspace = true }
|
||||||
|
|
||||||
# tokio
|
# tokio
|
||||||
tokio = { version = "1", default-features = false, features = ["sync"] }
|
tokio = { version = "1", default-features = false, features = ["sync"] }
|
||||||
|
|||||||
@ -19,7 +19,7 @@ reth-consensus-common = { path = "../consensus/common" }
|
|||||||
revm = { version = "3" }
|
revm = { version = "3" }
|
||||||
|
|
||||||
# common
|
# common
|
||||||
tracing = "0.1.37"
|
tracing = { workspace = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
reth-rlp = { path = "../rlp" }
|
reth-rlp = { path = "../rlp" }
|
||||||
|
|||||||
@ -24,7 +24,7 @@ tower = "0.4"
|
|||||||
# misc
|
# misc
|
||||||
jsonrpsee = { version = "0.18", features = ["server", "client"] }
|
jsonrpsee = { version = "0.18", features = ["server", "client"] }
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
tracing = "0.1.37"
|
tracing = { workspace = true }
|
||||||
bytes = "1.4"
|
bytes = "1.4"
|
||||||
thiserror = "1.0.37"
|
thiserror = "1.0.37"
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,7 @@ hyper = "0.14"
|
|||||||
strum = { version = "0.24", features = ["derive"] }
|
strum = { version = "0.24", features = ["derive"] }
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
tracing = "0.1"
|
tracing = { workspace = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
reth-tracing = { path = "../../tracing" }
|
reth-tracing = { path = "../../tracing" }
|
||||||
|
|||||||
@ -24,7 +24,7 @@ async-trait = "0.1"
|
|||||||
thiserror = "1.0.37"
|
thiserror = "1.0.37"
|
||||||
jsonrpsee-types = "0.18"
|
jsonrpsee-types = "0.18"
|
||||||
jsonrpsee-core = "0.18"
|
jsonrpsee-core = "0.18"
|
||||||
tracing = "0.1"
|
tracing = { workspace = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
reth-interfaces = { path = "../../interfaces", features = ["test-utils"] }
|
reth-interfaces = { path = "../../interfaces", features = ["test-utils"] }
|
||||||
|
|||||||
@ -56,7 +56,7 @@ serde_json = "1.0"
|
|||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
hex = "0.4"
|
hex = "0.4"
|
||||||
rand = "0.8.5"
|
rand = "0.8.5"
|
||||||
tracing = "0.1"
|
tracing = { workspace = true }
|
||||||
tracing-futures = "0.2"
|
tracing-futures = "0.2"
|
||||||
schnellru = "0.2"
|
schnellru = "0.2"
|
||||||
futures = "0.3.26"
|
futures = "0.3.26"
|
||||||
|
|||||||
@ -27,7 +27,7 @@ serde_json = "1.0.91"
|
|||||||
walkdir = "2.3.2"
|
walkdir = "2.3.2"
|
||||||
eyre = "0.6.8"
|
eyre = "0.6.8"
|
||||||
shellexpand = "3.0.0"
|
shellexpand = "3.0.0"
|
||||||
tracing = "0.1.37"
|
tracing = { workspace = true }
|
||||||
|
|
||||||
# crypto
|
# crypto
|
||||||
rand = { version = "0.8", optional = true }
|
rand = { version = "0.8", optional = true }
|
||||||
|
|||||||
@ -31,7 +31,7 @@ futures-util = "0.3.25"
|
|||||||
pin-project = "1.0.12"
|
pin-project = "1.0.12"
|
||||||
|
|
||||||
# observability
|
# observability
|
||||||
tracing = "0.1.36"
|
tracing = { workspace = true }
|
||||||
metrics = "0.20.1"
|
metrics = "0.20.1"
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
|
|||||||
@ -20,7 +20,7 @@ tokio = { version = "1.21", features = ["sync", "macros", "rt-multi-thread"] }
|
|||||||
tokio-stream = { version = "0.1", features = ["sync"] }
|
tokio-stream = { version = "0.1", features = ["sync"] }
|
||||||
|
|
||||||
# tracing
|
# tracing
|
||||||
tracing = "0.1"
|
tracing = { workspace = true }
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
thiserror = "1.0.37"
|
thiserror = "1.0.37"
|
||||||
|
|||||||
@ -15,7 +15,7 @@ tracing-futures = "0.2"
|
|||||||
futures-util = "0.3"
|
futures-util = "0.3"
|
||||||
|
|
||||||
## misc
|
## misc
|
||||||
tracing = { version = "0.1", default-features = false }
|
tracing = { workspace = true, default-features = false }
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
dyn-clone = "1.0"
|
dyn-clone = "1.0"
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,7 @@ readme = "README.md"
|
|||||||
description = "tracing helpers"
|
description = "tracing helpers"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
tracing = { version = "0.1", default-features = false }
|
tracing = { workspace = true, default-features = false }
|
||||||
tracing-subscriber = { version = "0.3", default-features = false, features = ["env-filter", "fmt"] }
|
tracing-subscriber = { version = "0.3", default-features = false, features = ["env-filter", "fmt"] }
|
||||||
tracing-appender = "0.2"
|
tracing-appender = "0.2"
|
||||||
tracing-journald = "0.3"
|
tracing-journald = "0.3"
|
||||||
|
|||||||
@ -36,7 +36,7 @@ reth-metrics-derive = { path = "../metrics/metrics-derive" }
|
|||||||
# misc
|
# misc
|
||||||
aquamarine = "0.3.0"
|
aquamarine = "0.3.0"
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
tracing = "0.1"
|
tracing = { workspace = true }
|
||||||
serde = { version = "1.0", features = ["derive", "rc"], optional = true }
|
serde = { version = "1.0", features = ["derive", "rc"], optional = true }
|
||||||
fnv = "1.0.7"
|
fnv = "1.0.7"
|
||||||
bitflags = "1.3"
|
bitflags = "1.3"
|
||||||
|
|||||||
@ -20,7 +20,7 @@ reth-db = { path = "../storage/db" }
|
|||||||
tokio = { version = "1.21.2", default-features = false, features = ["sync"] }
|
tokio = { version = "1.21.2", default-features = false, features = ["sync"] }
|
||||||
|
|
||||||
# tracing
|
# tracing
|
||||||
tracing = "0.1"
|
tracing = { workspace = true }
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
hex = "0.4"
|
hex = "0.4"
|
||||||
|
|||||||
Reference in New Issue
Block a user