Skip to content

Commit

Permalink
fix: no_std scroll-alloy-rpc-types-engine
Browse files Browse the repository at this point in the history
Signed-off-by: Gregory Edison <[email protected]>
  • Loading branch information
greged93 committed Jan 27, 2025
1 parent 80bf29a commit 644cd1e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/scroll/alloy/rpc-types-engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ serde = { workspace = true, optional = true }
serde_json.workspace = true

[features]
default = ["std"]
std = [
"alloy-primitives/std",
"alloy-rpc-types-engine/std",
"serde?/std",
"serde_json/std"
]
serde = [
"dep:serde",
"alloy-primitives/serde",
Expand Down
2 changes: 2 additions & 0 deletions crates/scroll/alloy/rpc-types-engine/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//! Scroll types for interaction with the Engine API via RPC.
#![cfg_attr(not(feature = "std"), no_std)]

mod attributes;
pub use attributes::ScrollPayloadAttributes;

Expand Down
1 change: 1 addition & 0 deletions crates/scroll/engine-primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ serde.workspace = true
sha2 = { workspace = true, default-features = false}

[features]
default = ["std"]
std = [
"alloy-consensus/std",
"alloy-eips/std",
Expand Down

0 comments on commit 644cd1e

Please sign in to comment.