cfg: replace std feature gate alloc imports with extern crate alloc (#10861)

This commit is contained in:
Thomas Coratger
2024-09-13 18:01:12 +02:00
committed by GitHub
parent 6fc81f2b70
commit 47d188cb8e
54 changed files with 39 additions and 163 deletions

View File

@ -4,12 +4,10 @@ use crate::{
constants::EMPTY_OMMER_ROOT_HASH, keccak256, Header, Receipt, ReceiptWithBloom,
ReceiptWithBloomRef, Request, TransactionSigned, Withdrawal, B256,
};
use alloc::vec::Vec;
use alloy_eips::eip7685::Encodable7685;
use reth_trie_common::root::{ordered_trie_root, ordered_trie_root_with_encoder};
#[cfg(not(feature = "std"))]
use alloc::vec::Vec;
/// Calculate a transaction root.
///
/// `(rlp(index), encoded(tx))` pairs.