Skip to content

Commit

Permalink
chore(eips): make alloy-serde optional under serde (#948)
Browse files Browse the repository at this point in the history
* chore: make `alloy-serde` optional `alloy-eips`

* chore: unused crate deps
  • Loading branch information
DaniPopes authored Jun 20, 2024
1 parent 1ee31cf commit 7b28acf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions crates/eips/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ workspace = true
[dependencies]
alloy-primitives = { workspace = true, features = ["rlp"] }
alloy-rlp = { workspace = true, features = ["derive"] }
alloy-serde.workspace = true

sha2.workspace = true

# serde
alloy-serde = { workspace = true, optional = true }
serde = { workspace = true, optional = true }

# kzg
Expand Down Expand Up @@ -62,7 +62,12 @@ std = [
"c-kzg?/std",
"once_cell?/std",
]
serde = ["dep:serde", "alloy-primitives/serde", "c-kzg?/serde"]
serde = [
"dep:alloy-serde",
"dep:serde",
"alloy-primitives/serde",
"c-kzg?/serde",
]
kzg = ["dep:derive_more", "dep:c-kzg", "dep:once_cell"]
ssz = [
"std",
Expand Down
1 change: 1 addition & 0 deletions crates/eips/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
html_logo_url = "https://raw.githubusercontent.com/alloy-rs/core/main/assets/alloy.jpg",
html_favicon_url = "https://raw.githubusercontent.com/alloy-rs/core/main/assets/favicon.ico"
)]
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#![cfg_attr(not(feature = "std"), no_std)]

Expand Down

0 comments on commit 7b28acf

Please sign in to comment.