Skip to content

Commit

Permalink
fix: rm dep on alloy-serde
Browse files Browse the repository at this point in the history
  • Loading branch information
onbjerg committed Oct 17, 2024
1 parent d89f758 commit 109f641
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ rustdoc-args = ["--cfg", "docsrs"]
[workspace.dependencies]
alloy-primitives = { version = "0.8.0", default-features = false }
alloy-rlp = { version = "0.3", default-features = false }
alloy-serde = { version = "0.3", default-features = false }

# serde
serde = { version = "1.0", default-features = false, features = [
Expand Down
3 changes: 1 addition & 2 deletions crates/eip7702/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ workspace = true
[dependencies]
alloy-primitives = { workspace = true, features = ["rlp"] }
alloy-rlp = { workspace = true, features = ["derive"] }
alloy-serde = { workspace = true, optional = true }

# serde
serde = { workspace = true, optional = true }
Expand All @@ -41,7 +40,7 @@ serde_json.workspace = true
[features]
default = ["std"]
std = ["alloy-primitives/std", "alloy-rlp/std", "serde?/std"]
serde = ["dep:serde", "dep:alloy-serde", "alloy-primitives/serde"]
serde = ["dep:serde", "alloy-primitives/serde"]
serde-bincode-compat = ["serde_with"]
arbitrary = ["std", "dep:arbitrary", "dep:rand", "alloy-primitives/arbitrary"]
k256 = ["alloy-primitives/k256", "dep:k256"]
2 changes: 1 addition & 1 deletion crates/eip7702/src/auth_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl RecoveredAuthority {
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
pub struct Authorization {
/// The chain ID of the authorization.
#[cfg_attr(feature = "serde", serde(with = "alloy_serde::quantity"))]
#[cfg_attr(feature = "serde", serde(with = "quantity"))]
pub chain_id: u64,
/// The address of the authorization.
pub address: Address,
Expand Down

0 comments on commit 109f641

Please sign in to comment.