chore: disable default std serde_json feature (#13513)

This commit is contained in:
Matthias Seitz
2024-12-23 10:46:35 +01:00
committed by GitHub
parent 6e140108f0
commit 517e5dbb06
11 changed files with 17 additions and 9 deletions

View File

@ -522,7 +522,7 @@ rayon = "1.7"
rustc-hash = { version = "2.0", default-features = false }
schnellru = "0.2"
serde = { version = "1.0", default-features = false }
serde_json = "1.0.94"
serde_json = { version = "1.0.94", default-features = false, features = ["alloc"] }
serde_with = { version = "3", default-features = false, features = ["macros"] }
sha2 = { version = "0.10", default-features = false }
shellexpand = "3.0.0"

View File

@ -52,7 +52,8 @@ std = [
"reth-ethereum-forks/std",
"derive_more/std",
"reth-network-peers/std",
"reth-trie-common/std"
"reth-trie-common/std",
"serde_json/std"
]
arbitrary = [
"alloy-chains/arbitrary",

View File

@ -51,5 +51,6 @@ std = [
"alloy-primitives/std",
"revm-primitives/std",
"secp256k1/std",
"reth-ethereum-forks/std"
"reth-ethereum-forks/std",
"serde_json/std"
]

View File

@ -14,6 +14,6 @@ workspace = true
[dependencies]
# misc
serde_json.workspace = true
serde_json = { workspace = true, features = ["std"] }
serde.workspace = true
thiserror.workspace = true

View File

@ -20,7 +20,7 @@ reth-ethereum-forks.workspace = true
# misc
serde = { workspace = true, optional = true }
humantime-serde = { workspace = true, optional = true }
serde_json = { workspace = true }
serde_json = { workspace = true, features = ["std"] }
# misc
tracing.workspace = true

View File

@ -44,6 +44,7 @@ std = [
"serde_with/std",
"thiserror/std",
"url/std",
"serde_json/std"
]
secp256k1 = ["dep:secp256k1", "enr/secp256k1"]
net = ["std", "dep:tokio", "tokio?/net"]

View File

@ -62,5 +62,6 @@ std = [
"derive_more/std",
"reth-network-peers/std",
"thiserror/std",
"serde_json/std",
"op-alloy-consensus/std"
]

View File

@ -89,7 +89,8 @@ std = [
"secp256k1?/std",
"thiserror/std",
"alloy-trie/std",
"op-alloy-consensus?/std"
"op-alloy-consensus?/std",
"serde_json/std"
]
secp256k1 = ["dep:secp256k1"]
test-utils = [

View File

@ -117,7 +117,8 @@ std = [
"secp256k1?/std",
"reth-trie-common/std",
"op-alloy-consensus?/std",
"op-alloy-rpc-types?/std"
"op-alloy-rpc-types?/std",
"serde_json/std"
]
reth-codec = [
"dep:reth-codecs",

View File

@ -60,7 +60,8 @@ std = [
"alloy-genesis?/std",
"alloy-trie?/std",
"serde/std",
"op-alloy-consensus?/std"
"op-alloy-consensus?/std",
"serde_json/std"
]
alloy = [
"dep:alloy-consensus",

View File

@ -72,7 +72,8 @@ std = [
"nybbles/std",
"reth-primitives-traits/std",
"serde?/std",
"serde_with?/std"
"serde_with?/std",
"serde_json/std"
]
eip1186 = [
"alloy-rpc-types-eth/serde",