no_std in reth-ethereum-forks (#9589)

This commit is contained in:
nk_ysg
2024-07-18 02:18:27 +08:00
committed by GitHub
parent 5c4ce3bc6a
commit 0376be622d
8 changed files with 25 additions and 10 deletions

View File

@ -25,7 +25,7 @@ serde = { workspace = true, features = ["derive"], optional = true }
thiserror-no-std = { workspace = true, default-features = false }
once_cell.workspace = true
dyn-clone.workspace = true
rustc-hash.workspace = true
rustc-hash = { workspace = true, optional = true }
# arbitrary utils
arbitrary = { workspace = true, features = ["derive"], optional = true }
@ -39,8 +39,9 @@ proptest.workspace = true
proptest-derive.workspace = true
[features]
default = ["std", "serde"]
default = ["std", "serde", "rustc-hash"]
arbitrary = ["dep:arbitrary", "dep:proptest", "dep:proptest-derive"]
optimism = []
serde = ["dep:serde"]
std = ["thiserror-no-std/std"]
std = ["thiserror-no-std/std", "rustc-hash/std"]
rustc-hash = ["dep:rustc-hash"]