Skip to content

Commit c30adb9

Browse files
committed
eip 4844 added
Signed-off-by: nadtech-hub <[email protected]>
1 parent d541101 commit c30adb9

File tree

4 files changed

+787
-5
lines changed

4 files changed

+787
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ rustdoc-args = ["--cfg", "docsrs"]
3535
[workspace.dependencies]
3636
alloy-primitives = { version = "0.8.15", default-features = false }
3737
alloy-rlp = { version = "0.3", default-features = false }
38+
alloy-serde = { version = "0.8", default-features = false }
3839

3940
# serde
4041
serde = { version = "1.0", default-features = false, features = [

crates/eip4844/Cargo.toml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,26 @@ workspace = true
1919

2020
[features]
2121
default = ["std", "kzg-sidecar"]
22+
std = ["alloy-primitives/std", "alloy-rlp/std", "serde?/std", "c-kzg?/std", "once_cell?/std"]
23+
sha2 = ["dep:sha2"]
2224
kzg = ["kzg-sidecar", "sha2", "dep:c-kzg", "dep:once_cell"]
2325
kzg-sidecar = ["sha2"]
26+
serde = ["dep:alloy-serde", "dep:serde", "alloy-primitives/serde", "c-kzg?/serde"]
2427
arbitrary = [
2528
"std",
2629
"kzg-sidecar",
2730
"dep:arbitrary",
2831
"alloy-primitives/arbitrary",
2932
"alloy-serde?/arbitrary",
30-
"alloy-eip2930/arbitrary",
31-
"alloy-eip7702/arbitrary",
32-
"alloy-eip7702/k256",
3333
]
3434

35-
3635
[dependencies]
3736
alloy-primitives = { workspace = true, features = ["rlp"] }
37+
alloy-rlp = { workspace = true, features = ["derive"] }
3838

3939
# crypto
40-
c-kzg = { workspace = true }
40+
sha2 = { workspace = true, optional = true }
41+
c-kzg = { workspace = true, optional = true }
4142

4243
# misc
4344
derive_more = { workspace = true, features = [
@@ -47,5 +48,21 @@ derive_more = { workspace = true, features = [
4748
"from",
4849
"into_iterator",
4950
], default-features = false }
51+
once_cell = { workspace = true, features = ["race", "alloc"], optional = true }
52+
53+
# serde
54+
alloy-serde = { workspace = true, optional = true }
55+
serde = { workspace = true, optional = true }
56+
57+
# eips
58+
alloy-eip7840 = { path = "../eip7840" }
59+
60+
arbitrary = { workspace = true, features = ["derive"], optional = true }
5061

5162
[dev-dependencies]
63+
arbitrary = { workspace = true, features = ["derive"] }
64+
alloy-primitives = { workspace = true, features = [
65+
"rand",
66+
"serde",
67+
"arbitrary",
68+
] }

0 commit comments

Comments
 (0)