mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
121 lines
3.0 KiB
TOML
121 lines
3.0 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.workspace = true
|
|
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
|
|
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"] }
|
|
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
|
|
proptest.workspace = true
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = [
|
|
"reth-primitives-traits/std",
|
|
"reth-primitives/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"
|
|
]
|
|
reth-codec = [
|
|
"dep:reth-codecs",
|
|
"std",
|
|
"rand",
|
|
"dep:proptest",
|
|
"dep:arbitrary",
|
|
"reth-primitives/reth-codec",
|
|
"reth-primitives-traits/reth-codec",
|
|
"reth-codecs?/op",
|
|
"reth-primitives/reth-codec",
|
|
"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/serde-bincode-compat",
|
|
"reth-primitives-traits/serde-bincode-compat"
|
|
]
|
|
arbitrary = [
|
|
"dep:arbitrary",
|
|
"dep:secp256k1",
|
|
"reth-primitives-traits/arbitrary",
|
|
"reth-primitives/arbitrary",
|
|
"reth-codecs?/arbitrary",
|
|
"op-alloy-consensus/arbitrary",
|
|
"alloy-consensus/arbitrary",
|
|
"alloy-eips/arbitrary",
|
|
"alloy-primitives/arbitrary",
|
|
"revm-primitives/arbitrary",
|
|
"rand",
|
|
]
|
|
optimism = [
|
|
"revm-primitives/optimism",
|
|
"reth-primitives/optimism"
|
|
]
|