[package] name = "reth-primitives-traits" version.workspace = true edition.workspace = true homepage.workspace = true license.workspace = true repository.workspace = true rust-version.workspace = true description = "Common types in reth." [lints] workspace = true [dependencies] # reth reth-codecs = { workspace = true, optional = true } # ethereum alloy-consensus.workspace = true alloy-eips.workspace = true alloy-genesis.workspace = true alloy-primitives.workspace = true alloy-rlp.workspace = true revm-primitives.workspace = true # misc byteorder = { workspace = true, optional = true } bytes.workspace = true derive_more.workspace = true roaring = "0.10.2" serde_with = { workspace = true, optional = true } auto_impl.workspace = true # required by reth-codecs modular-bitfield = { workspace = true, optional = true } serde = { workspace = true, optional = true} # arbitrary utils arbitrary = { workspace = true, features = ["derive"], optional = true } proptest = { workspace = true, optional = true } proptest-arbitrary-interop = { workspace = true, optional = true } [dev-dependencies] alloy-primitives = { workspace = true, features = ["arbitrary"] } alloy-consensus = { workspace = true, features = ["arbitrary"] } bincode.workspace = true proptest-arbitrary-interop.workspace = true proptest.workspace = true rand.workspace = true serde_json.workspace = true test-fuzz.workspace = true modular-bitfield.workspace = true serde.workspace = true [features] default = ["std"] std = [ "alloy-consensus/std", "alloy-eips/std", "alloy-genesis/std", "alloy-primitives/std", "revm-primitives/std", "serde?/std", "serde_with?/std" ] test-utils = [ "arbitrary", "reth-codecs?/test-utils" ] arbitrary = [ "std", "alloy-consensus/arbitrary", "alloy-primitives/arbitrary", "dep:arbitrary", "dep:proptest", "dep:proptest-arbitrary-interop", "alloy-eips/arbitrary", "revm-primitives/arbitrary", "reth-codecs?/arbitrary" ] serde-bincode-compat = [ "serde", "serde_with", "alloy-consensus/serde-bincode-compat", "alloy-eips/serde-bincode-compat" ] serde = [ "dep:serde", "alloy-consensus/serde", "alloy-eips/serde", "alloy-primitives/serde", "bytes/serde", "rand/serde", "reth-codecs?/serde", "revm-primitives/serde", "roaring/serde", "revm-primitives/serde", ] reth-codec = [ "dep:reth-codecs", "dep:modular-bitfield", "dep:byteorder", ]