add format checker to .toml (#13968)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
georgehao
2025-01-28 20:20:58 +08:00
committed by GitHub
parent 22c1de501b
commit 2e4376f359
91 changed files with 833 additions and 933 deletions

View File

@ -27,20 +27,13 @@ op-alloy-consensus = { workspace = true, optional = true }
# misc
bytes.workspace = true
modular-bitfield.workspace = true
visibility = { version = "0.1.1", optional = true}
visibility = { version = "0.1.1", optional = true }
serde.workspace = true
arbitrary = { workspace = true, features = ["derive"], optional = true }
[dev-dependencies]
alloy-eips = { workspace = true, default-features = false, features = [
"arbitrary",
"serde",
] }
alloy-primitives = { workspace = true, features = [
"arbitrary",
"serde",
"rand",
] }
alloy-eips = { workspace = true, default-features = false, features = ["arbitrary", "serde"] }
alloy-primitives = { workspace = true, features = ["arbitrary", "serde", "rand"] }
alloy-consensus = { workspace = true, features = ["arbitrary"] }
test-fuzz.workspace = true
serde_json.workspace = true
@ -53,15 +46,15 @@ rstest.workspace = true
[features]
default = ["std", "alloy"]
std = [
"alloy-primitives/std",
"bytes/std",
"alloy-consensus?/std",
"alloy-eips?/std",
"alloy-genesis?/std",
"alloy-trie?/std",
"serde/std",
"op-alloy-consensus?/std",
"serde_json/std"
"alloy-primitives/std",
"bytes/std",
"alloy-consensus?/std",
"alloy-eips?/std",
"alloy-genesis?/std",
"alloy-trie?/std",
"serde/std",
"op-alloy-consensus?/std",
"serde_json/std",
]
alloy = [
"dep:alloy-consensus",
@ -71,24 +64,24 @@ alloy = [
]
op = ["alloy", "dep:op-alloy-consensus"]
test-utils = [
"std",
"std",
"alloy",
"arbitrary",
"arbitrary",
"dep:visibility",
"dep:arbitrary"
"dep:arbitrary",
]
serde = [
"alloy-consensus?/serde",
"alloy-eips?/serde",
"alloy-primitives/serde",
"alloy-trie?/serde",
"bytes/serde",
"op-alloy-consensus?/serde",
"alloy-consensus?/serde",
"alloy-eips?/serde",
"alloy-primitives/serde",
"alloy-trie?/serde",
"bytes/serde",
"op-alloy-consensus?/serde",
]
arbitrary = [
"alloy-consensus?/arbitrary",
"alloy-eips?/arbitrary",
"alloy-primitives/arbitrary",
"alloy-trie?/arbitrary",
"op-alloy-consensus?/arbitrary"
"alloy-consensus?/arbitrary",
"alloy-eips?/arbitrary",
"alloy-primitives/arbitrary",
"alloy-trie?/arbitrary",
"op-alloy-consensus?/arbitrary",
]

View File

@ -72,23 +72,23 @@ test-utils = [
"reth-stages-types/test-utils",
]
arbitrary = [
"reth-primitives/arbitrary",
"reth-db-models/arbitrary",
"dep:arbitrary",
"dep:proptest",
"reth-primitives-traits/arbitrary",
"reth-trie-common/arbitrary",
"alloy-primitives/arbitrary",
"parity-scale-codec/arbitrary",
"reth-codecs/arbitrary",
"reth-prune-types/arbitrary",
"reth-stages-types/arbitrary",
"alloy-consensus/arbitrary",
"reth-optimism-primitives?/arbitrary"
"reth-primitives/arbitrary",
"reth-db-models/arbitrary",
"dep:arbitrary",
"dep:proptest",
"reth-primitives-traits/arbitrary",
"reth-trie-common/arbitrary",
"alloy-primitives/arbitrary",
"parity-scale-codec/arbitrary",
"reth-codecs/arbitrary",
"reth-prune-types/arbitrary",
"reth-stages-types/arbitrary",
"alloy-consensus/arbitrary",
"reth-optimism-primitives?/arbitrary",
]
optimism = [
"reth-codecs/op",
"reth-optimism-primitives?/optimism",
"reth-codecs/op",
"reth-optimism-primitives?/optimism",
"op",
]
op = ["dep:reth-optimism-primitives", "reth-codecs/op"]

View File

@ -29,10 +29,7 @@ alloy-primitives.workspace = true
alloy-consensus.workspace = true
# mdbx
reth-libmdbx = { workspace = true, optional = true, features = [
"return-borrowed",
"read-tx-timeouts",
] }
reth-libmdbx = { workspace = true, optional = true, features = ["return-borrowed", "read-tx-timeouts"] }
eyre = { workspace = true, optional = true }
# codecs
@ -63,11 +60,7 @@ tempfile.workspace = true
test-fuzz.workspace = true
parking_lot.workspace = true
pprof = { workspace = true, features = [
"flamegraph",
"frame-pointer",
"criterion",
] }
pprof = { workspace = true, features = ["flamegraph", "frame-pointer", "criterion"] }
criterion.workspace = true
arbitrary = { workspace = true, features = ["derive"] }

View File

@ -29,10 +29,10 @@ thiserror.workspace = true
[features]
default = ["std"]
std = [
"alloy-eips/std",
"alloy-primitives/std",
"alloy-rlp/std",
"derive_more/std",
"reth-primitives-traits/std",
"thiserror/std"
"alloy-eips/std",
"alloy-primitives/std",
"alloy-rlp/std",
"derive_more/std",
"reth-primitives-traits/std",
"thiserror/std",
]

View File

@ -31,11 +31,7 @@ return-borrowed = []
read-tx-timeouts = ["dep:dashmap"]
[dev-dependencies]
pprof = { workspace = true, features = [
"flamegraph",
"frame-pointer",
"criterion",
] }
pprof = { workspace = true, features = ["flamegraph", "frame-pointer", "criterion"] }
criterion.workspace = true
rand.workspace = true
rand_xorshift = "0.3"

View File

@ -57,9 +57,7 @@ metrics.workspace = true
# misc
auto_impl.workspace = true
itertools.workspace = true
notify = { workspace = true, default-features = false, features = [
"macos_fsevent",
] }
notify = { workspace = true, default-features = false, features = ["macos_fsevent"] }
parking_lot.workspace = true
dashmap = { workspace = true, features = ["inline"] }
strum.workspace = true

View File

@ -16,4 +16,4 @@ zstd = { workspace = true, features = ["experimental"] }
[features]
default = ["std"]
std = []
std = []