Files
nanoreth/crates/optimism/primitives/Cargo.toml

118 lines
2.9 KiB
TOML

[package]
name = "reth-optimism-primitives"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
description = "OP primitive types"
[lints]
workspace = true
[dependencies]
# reth
reth-primitives-traits = { workspace = true, features = ["op"] }
reth-codecs = { workspace = true, optional = true, features = ["op"] }
reth-zstd-compressors = { workspace = true, optional = true }
# ethereum
alloy-primitives.workspace = true
alloy-consensus.workspace = true
alloy-rlp.workspace = true
alloy-eips.workspace = true
revm-primitives = { workspace = true, optional = true }
secp256k1 = { workspace = true, optional = true }
# op
op-alloy-consensus.workspace = true
# codec
bytes = { workspace = true, optional = true }
modular-bitfield = { workspace = true, optional = true }
serde = { workspace = true, optional = true }
# misc
derive_more = { workspace = true, features = ["deref", "from", "into", "constructor"] }
once_cell.workspace = true
rand = { workspace = true, optional = true }
# test
arbitrary = { workspace = true, features = ["derive"], optional = true }
proptest = { workspace = true, optional = true }
[dev-dependencies]
proptest-arbitrary-interop.workspace = true
reth-codecs = { workspace = true, features = ["test-utils", "op"] }
rstest.workspace = true
arbitrary.workspace = true
secp256k1 = { workspace = true, features = ["rand"] }
proptest.workspace = true
[features]
default = ["std"]
std = [
"reth-primitives-traits/std",
"reth-codecs?/std",
"alloy-consensus/std",
"alloy-eips/std",
"alloy-primitives/std",
"serde?/std",
"bytes?/std",
"derive_more/std",
"revm-primitives?/std",
"secp256k1?/std",
"alloy-rlp/std",
"reth-zstd-compressors?/std",
"op-alloy-consensus/std",
"once_cell/std"
]
reth-codec = [
"dep:reth-codecs",
"std",
"dep:proptest",
"dep:arbitrary",
"reth-primitives-traits/reth-codec",
"reth-codecs?/op",
"dep:bytes",
"dep:modular-bitfield",
"dep:reth-zstd-compressors"
]
serde = [
"dep:serde",
"reth-primitives-traits/serde",
"alloy-primitives/serde",
"alloy-consensus/serde",
"alloy-eips/serde",
"bytes?/serde",
"reth-codecs?/serde",
"op-alloy-consensus/serde",
"rand?/serde",
"revm-primitives?/serde",
"secp256k1?/serde",
]
serde-bincode-compat = [
"alloy-consensus/serde-bincode-compat",
"alloy-eips/serde-bincode-compat",
"op-alloy-consensus/serde-bincode-compat",
"reth-primitives-traits/serde-bincode-compat"
]
arbitrary = [
"dep:arbitrary",
"dep:secp256k1",
"secp256k1?/rand",
"reth-primitives-traits/arbitrary",
"reth-codecs?/arbitrary",
"op-alloy-consensus/arbitrary",
"alloy-consensus/arbitrary",
"alloy-eips/arbitrary",
"alloy-primitives/arbitrary",
"revm-primitives?/arbitrary",
"rand",
]
optimism = [
"dep:revm-primitives",
"revm-primitives/optimism",
]