Skip to content

Commit

Permalink
optional serde std
Browse files Browse the repository at this point in the history
  • Loading branch information
CeciliaZ030 committed Jan 18, 2024
1 parent cbbfe9c commit 15c51fa
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
6 changes: 5 additions & 1 deletion bins/revme/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ alloy-rlp = { version = "0.3", default-features = false, features = [
"arrayvec",
] }
serde = { version = "1.0", default-features = false, features = ["derive", "rc"] }
serde_json = { version = "1.0", default-features = false }
serde_json = { version = "1.0", default-features = false, features = ["alloc"]}
structopt = "0.3"
thiserror = "1.0"
triehash = "0.8"
walkdir = "2.4"

[features]
default = ["std"]
std = ["serde/std", "serde_json/std", "alloy-rlp/std", "revm/std"]
2 changes: 1 addition & 1 deletion crates/interpreter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ serde = { version = "1.0", default-features = false, features = ["derive", "rc"]

[features]
default = ["std"]
std = ["revm-primitives/std"]
std = ["serde?/std", "revm-primitives/std"]
serde = ["dep:serde", "revm-primitives/serde"]
arbitrary = ["std", "revm-primitives/arbitrary"]

Expand Down
8 changes: 1 addition & 7 deletions crates/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,7 @@ hex = { version = "0.4", default-features = false }

[features]
default = ["std", "c-kzg"]
std = [
"alloy-primitives/std",
"alloy-rlp/std",
"hex/std",
"bitvec/std",
"bitflags/std",
]
std = ["serde?/std", "alloy-rlp/std", "hex/std", "bitvec/std", "bitflags/std"]
serde = [
"dep:serde",
"alloy-primitives/serde",
Expand Down
4 changes: 2 additions & 2 deletions crates/revm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ auto_impl = { version = "1.1", default-features = false }

# Optional
serde = { version = "1.0", default-features = false, features = ["derive", "rc"], optional = true }
serde_json = { version = "1.0", default-features = false, optional = true }
serde_json = { version = "1.0", default-features = false, features = ["alloc"], optional = true }

# ethersdb
tokio = { version = "1.34", features = [
Expand All @@ -36,7 +36,7 @@ criterion = "0.5"

[features]
default = ["std", "c-kzg", "secp256k1"]
std = ["revm-interpreter/std", "revm-precompile/std"]
std = ["serde?/std", "serde_json?/std", "revm-interpreter/std", "revm-precompile/std"]
serde = ["dep:serde", "dep:serde_json", "revm-interpreter/serde"]
arbitrary = ["revm-interpreter/arbitrary"]

Expand Down

0 comments on commit 15c51fa

Please sign in to comment.