From e9861a5d2929cfb500fd815567ad67fc848d6203 Mon Sep 17 00:00:00 2001 From: eyusufatik Date: Wed, 18 Dec 2024 18:00:50 +0300 Subject: [PATCH] remove serde_with --- Cargo.lock | 1 - Cargo.toml | 1 - crates/evm/Cargo.toml | 1 - crates/evm/src/evm/primitive_types.rs | 2 -- crates/evm/src/tests/call_tests.rs | 2 -- guests/risc0/batch-proof-bitcoin/Cargo.lock | 1 - 6 files changed, 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0ce7fec8e..f572969a7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1995,7 +1995,6 @@ dependencies = [ "secp256k1", "serde", "serde_json", - "serde_with", "sov-modules-api", "sov-prover-storage-manager", "sov-rollup-interface", diff --git a/Cargo.toml b/Cargo.toml index 1bab055f4..cba031550 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -96,7 +96,6 @@ reqwest = { version = "0.12.5", features = ["rustls-tls", "json", "http2"], defa rocksdb = { version = "0.22.0", features = ["lz4"], default-features = false } serde = { version = "1.0.192", default-features = false, features = ["alloc", "derive"] } serde_json = { version = "1.0", default-features = false, features = ["alloc"] } -serde_with = "3.3.0" sha2 = { version = "0.10.8", default-features = false } schemars = { version = "0.8.16", features = ["derive"] } secp256k1 = { version = "0.29.0", default-features = false, features = ["global-context", "recovery"] } diff --git a/crates/evm/Cargo.toml b/crates/evm/Cargo.toml index 53e9f7578..51f8ad5fe 100644 --- a/crates/evm/Cargo.toml +++ b/crates/evm/Cargo.toml @@ -26,7 +26,6 @@ jsonrpsee = { workspace = true, features = ["macros", "client-core", "server"], schemars = { workspace = true, optional = true } serde = { workspace = true } serde_json = { workspace = true, optional = true } -serde_with = { workspace = true } thiserror = { workspace = true } tracing = { workspace = true, optional = true } diff --git a/crates/evm/src/evm/primitive_types.rs b/crates/evm/src/evm/primitive_types.rs index b928cbbb5..5148efb9c 100644 --- a/crates/evm/src/evm/primitive_types.rs +++ b/crates/evm/src/evm/primitive_types.rs @@ -5,7 +5,6 @@ use alloy_rlp::bytes::BufMut; use alloy_rlp::{Decodable, Encodable, RlpDecodable, RlpEncodable}; use reth_primitives::{Header as AlloyHeader, SealedHeader, TransactionSigned}; use serde::{Deserialize, Serialize}; -use serde_with::serde_as; /// Rlp encoded evm transaction. #[derive( @@ -246,7 +245,6 @@ impl From> for Block { } } -#[serde_as] #[derive(Debug, PartialEq, Clone, serde::Serialize, serde::Deserialize)] pub(crate) struct SealedBlock { /// Block header. diff --git a/crates/evm/src/tests/call_tests.rs b/crates/evm/src/tests/call_tests.rs index 2a68140bb..934472a85 100644 --- a/crates/evm/src/tests/call_tests.rs +++ b/crates/evm/src/tests/call_tests.rs @@ -7,12 +7,10 @@ use alloy_rpc_types::{BlockOverrides, TransactionInput, TransactionRequest}; use citrea_primitives::MIN_BASE_FEE_PER_GAS; use reth_primitives::constants::ETHEREUM_BLOCK_GAS_LIMIT; use reth_primitives::{BlockNumberOrTag, Log, LogData, SealedHeader}; -use reth_primitives_traits::serde_bincode_compat as reth_serde_bincode_compat; use revm::primitives::SpecId::SHANGHAI; use revm::primitives::{hex, KECCAK_EMPTY, U256}; use revm::Database; use serde::{Deserialize, Serialize}; -use serde_with::serde_as; use sov_modules_api::default_context::DefaultContext; use sov_modules_api::hooks::HookSoftConfirmationInfo; use sov_modules_api::utils::generate_address; diff --git a/guests/risc0/batch-proof-bitcoin/Cargo.lock b/guests/risc0/batch-proof-bitcoin/Cargo.lock index bc3ae2eea..7c1f3f91b 100644 --- a/guests/risc0/batch-proof-bitcoin/Cargo.lock +++ b/guests/risc0/batch-proof-bitcoin/Cargo.lock @@ -999,7 +999,6 @@ dependencies = [ "reth-primitives-traits", "revm", "serde", - "serde_with", "sov-modules-api", "sov-rollup-interface", "sov-state",