Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ alloy-primitives = "0.7.2"
alloy-dyn-abi = "0.7.2"
alloy-sol-types = "0.7.2"
alloy-rlp = "0.3.4"
alloy-trie = "0.4"
alloy-trie = { version = "0.4", default-features = false }
alloy-rpc-types = { version = "0.2", default-features = false, features = [
"eth",
] }
Expand Down
7 changes: 4 additions & 3 deletions crates/storage/codecs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ alloy-consensus = { workspace = true, optional = true }
alloy-eips = { workspace = true, optional = true }
alloy-genesis = { workspace = true, optional = true }
alloy-primitives.workspace = true
alloy-trie.workspace = true
alloy-trie = { workspace = true, optional = true }

# misc
bytes.workspace = true
modular-bitfield = { workspace = true, optional = true }
serde.workspace = true
serde = { workspace = true, optional = true }

[dev-dependencies]
alloy-eips = { workspace = true, default-features = false, features = [
Expand All @@ -43,10 +43,11 @@ proptest-arbitrary-interop.workspace = true

[features]
default = ["std", "alloy"]
std = ["alloy-primitives/std", "bytes/std"]
std = ["alloy-primitives/std", "bytes/std", "serde/std"]
alloy = [
"dep:alloy-consensus",
"dep:alloy-eips",
"dep:alloy-genesis",
"dep:modular-bitfield",
"dep:alloy-trie",
]
5 changes: 5 additions & 0 deletions crates/storage/codecs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ pub use reth_codecs_derive::*;
use alloy_primitives::{Address, Bloom, Bytes, FixedBytes, U256};
use bytes::Buf;

#[cfg(not(feature = "std"))]
extern crate alloc;
#[cfg(not(feature = "std"))]
use alloc::vec::Vec;

#[cfg(any(test, feature = "alloy"))]
mod alloy;

Expand Down