Files
reth/crates/common/rlp/Cargo.toml
Tomás 253aae5ea9 RLP decoding error tracing (#499)
* Add tracing to ProtocolMessage::decode errors

* Change trace message formatting

Now it prints the bytes as a hex string.
Also changed trace level to WARN and added 'handshake' to one of the traces to differentiate between them

* Add prefix to raw message bytes

* Specify 'eth' in trace message

to differentiate it from other handshakes

Co-authored-by: Dan Cline <6798349+Rjected@users.noreply.github.com>

Co-authored-by: Dan Cline <6798349+Rjected@users.noreply.github.com>
2022-12-16 20:57:48 -05:00

46 lines
1.2 KiB
TOML

[package]
name = "reth-rlp"
version = "0.1.2"
edition = "2021"
license = "Apache-2.0"
description = "Fast RLP serialization library"
repository = "https://github.com/paradigmxyz/reth"
[dependencies]
arrayvec = { version = "0.7", default-features = false }
auto_impl = "1"
bytes = { version = "1", default-features = false }
ethnum = { version = "1", default-features = false, optional = true }
smol_str = { version = "0.1", default-features = false, optional = true }
enr = { version = "0.7", default-features = false, optional = true }
rlp = { version = "0.5.2", default-features = false, optional = true }
ethereum-types = { version = "0.14", features = ["codec"], optional = true }
reth-rlp-derive = { version = "0.1", path = "../rlp-derive", optional = true }
tracing = "0.1.37"
[dev-dependencies]
reth-rlp = { path = ".", package = "reth-rlp", features = [
"derive",
"std",
"ethnum",
"ethereum-types",
"enr",
"smol_str"
] }
criterion = "0.4.0"
hex-literal = "0.3"
rand = "0.8"
secp256k1 = { version = "0.24", features = [
"rand-std",
] }
[features]
alloc = []
derive = ["reth-rlp-derive"]
std = ["alloc"]
enr = ["dep:enr", "dep:rlp", "enr/rust-secp256k1", "derive"]
[[bench]]
name = "bench"
harness = false