Skip to content

Commit

Permalink
chore: disable more default features (#13065)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Dec 2, 2024
1 parent 30800af commit aacf5d1
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/assets/check_rv32imac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ set +e # Disable immediate exit on error
crates_to_check=(
reth-codecs-derive
reth-ethereum-forks
reth-primitives-traits
# reth-evm
# reth-primitives
# reth-primitives-traits
# reth-optimism-forks
# reth-optimism-chainspec
)
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -485,12 +485,12 @@ backon = { version = "1.2", default-features = false, features = [
bincode = "1.3"
bitflags = "2.4"
boyer-moore-magiclen = "0.2.16"
bytes = "1.5"
bytes = { version = "1.5", default-features = false }
cfg-if = "1.0"
clap = "4"
const_format = { version = "0.2.32", features = ["rust_1_64"] }
dashmap = "6.0"
derive_more = { version = "1", features = ["full"] }
derive_more = { version = "1", default-features = false, features = ["full"] }
dyn-clone = "1.0.17"
eyre = "0.6"
fdlimit = "0.3.0"
Expand Down
3 changes: 2 additions & 1 deletion crates/chainspec/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ std = [
"alloy-consensus/std",
"once_cell/std",
"alloy-rlp/std",
"reth-ethereum-forks/std"
"reth-ethereum-forks/std",
"derive_more/std"
]
arbitrary = [
"alloy-chains/arbitrary",
Expand Down
3 changes: 2 additions & 1 deletion crates/consensus/consensus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ std = [
"alloy-primitives/std",
"alloy-eips/std",
"alloy-consensus/std",
"reth-primitives-traits/std"
"reth-primitives-traits/std",
"derive_more/std"
]
test-utils = [
"reth-primitives/test-utils",
Expand Down
3 changes: 2 additions & 1 deletion crates/evm/execution-errors/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ std = [
"alloy-eips/std",
"alloy-primitives/std",
"revm-primitives/std",
"alloy-rlp/std"
"alloy-rlp/std",
"derive_more/std"
]
3 changes: 2 additions & 1 deletion crates/net/p2p/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ std = [
"alloy-eips/std",
"alloy-primitives/std",
"reth-primitives-traits/std",
"alloy-consensus/std",
"alloy-consensus/std",
"derive_more/std"
]
23 changes: 12 additions & 11 deletions crates/optimism/chainspec/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,16 @@ op-alloy-rpc-types.workspace = true
[features]
default = ["std"]
std = [
"alloy-chains/std",
"alloy-genesis/std",
"alloy-primitives/std",
"alloy-eips/std",
"op-alloy-rpc-types/std",
"reth-chainspec/std",
"reth-ethereum-forks/std",
"reth-primitives-traits/std",
"reth-optimism-forks/std",
"alloy-consensus/std",
"once_cell/std",
"alloy-chains/std",
"alloy-genesis/std",
"alloy-primitives/std",
"alloy-eips/std",
"op-alloy-rpc-types/std",
"reth-chainspec/std",
"reth-ethereum-forks/std",
"reth-primitives-traits/std",
"reth-optimism-forks/std",
"alloy-consensus/std",
"once_cell/std",
"derive_more/std"
]
3 changes: 2 additions & 1 deletion crates/optimism/evm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ std = [
"alloy-primitives/std",
"revm-primitives/std",
"revm/std",
"reth-ethereum-forks/std"
"reth-ethereum-forks/std",
"derive_more/std"
]
optimism = [
"reth-primitives/optimism",
Expand Down
2 changes: 2 additions & 0 deletions crates/optimism/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ std = [
"alloy-eips/std",
"alloy-primitives/std",
"serde/std",
"bytes/std",
"derive_more/std"
]
reth-codec = [
"dep:reth-codecs",
Expand Down
4 changes: 3 additions & 1 deletion crates/primitives-traits/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ std = [
"revm-primitives/std",
"serde?/std",
"serde_with?/std",
"alloy-rlp/std"
"alloy-rlp/std",
"bytes/std",
"derive_more/std"
]
test-utils = [
"arbitrary",
Expand Down
4 changes: 3 additions & 1 deletion crates/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ std = [
"alloy-trie/std",
"serde_with?/std",
"alloy-rlp/std",
"reth-ethereum-forks/std"
"reth-ethereum-forks/std",
"bytes/std",
"derive_more/std"
]
reth-codec = [
"dep:reth-codecs",
Expand Down
3 changes: 2 additions & 1 deletion crates/storage/errors/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ std = [
"reth-primitives/std",
"alloy-eips/std",
"alloy-primitives/std",
"alloy-rlp/std"
"alloy-rlp/std",
"derive_more/std"
]

0 comments on commit aacf5d1

Please sign in to comment.