chore: reexport bytes & bump version to 1.4 (#1395)

This commit is contained in:
Roman Krasiuk
2023-02-16 20:33:28 +02:00
committed by GitHub
parent d2ec304bd3
commit f979c6c1fb
45 changed files with 93 additions and 88 deletions

View File

@ -24,7 +24,7 @@ tower = "0.4"
jsonrpsee = { version = "0.16", features = ["server", "client"] }
serde_json = "1.0"
tracing = "0.1.37"
bytes = "1.2.1"
bytes = "1.4"
thiserror = "1.0.37"
[dev-dependencies]

View File

@ -30,4 +30,3 @@ thiserror = "1.0.37"
reth-interfaces = { path = "../../interfaces", features = ["test-utils"] }
reth-provider = { path = "../../storage/provider", features = ["test-utils"] }
assert_matches = "1.5.0"
bytes = "1.2"

View File

@ -326,9 +326,11 @@ mod tests {
mod new_payload {
use super::*;
use bytes::{Bytes, BytesMut};
use reth_interfaces::test_utils::generators::random_header;
use reth_primitives::Block;
use reth_primitives::{
bytes::{Bytes, BytesMut},
Block,
};
use reth_rlp::DecodeError;
fn transform_block<F: FnOnce(Block) -> Block>(src: SealedBlock, f: F) -> SealedBlock {

View File

@ -23,6 +23,5 @@ tokio = { version = "1", features = ["sync"] }
# misc
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
bytes = "1.2"
jsonrpsee-types = { version = "0.16" }
lru = "0.9"

View File

@ -2,8 +2,9 @@
#![allow(missing_docs)]
use bytes::BytesMut;
use reth_primitives::{Address, Bloom, Bytes, SealedBlock, Withdrawal, H256, H64, U256, U64};
use reth_primitives::{
bytes::BytesMut, Address, Bloom, Bytes, SealedBlock, Withdrawal, H256, H64, U256, U64,
};
use reth_rlp::Encodable;
use serde::{Deserialize, Serialize};