-
Notifications
You must be signed in to change notification settings - Fork 988
chore: fix serde std flags for no-std build #987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
cbbfe9c
15c51fa
6f95113
cf4da2f
9a03c7e
2f0f19f
53d6e8b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,8 +22,8 @@ revm-precompile = { path = "../precompile", version = "2.2.0", default-features | |
| auto_impl = { version = "1.1", default-features = false } | ||
|
|
||
| # Optional | ||
| serde = { version = "1.0", features = ["derive", "rc"], optional = true } | ||
| serde_json = { version = "1.0", features = ["preserve_order"], optional = true } | ||
| serde = { version = "1.0", default-features = false, features = ["derive", "rc"], optional = true } | ||
| serde_json = { version = "1.0", default-features = false, features = ["alloc", "preserve_order"], optional = true } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @rakita how critical is having
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems not at all critical, I thought it is there to format output, but after checking, this is not the case. I am okay with removing it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice, thanks!
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just curious, why would you need binary to be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My need (and in this case @CeciliaZ030 's as well) is not the binary per se, but rather revm+serde. We want no-std revm to make ZK proofs for it with powdr , which works fine. However it would be great to also be able to enable the
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes sense, I don't focus a lot of my attention on Okay, I just noticed that Can you make a PR? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure! We can also wait to see if serde-rs/json#1101 gets merged, then we don't need to remove it.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Your call, if this blocks you or you can use this right now it would be best to make PR |
||
|
|
||
| # ethersdb | ||
| tokio = { version = "1.35", features = [ | ||
|
|
@@ -42,7 +42,7 @@ indicatif = "0.17" | |
|
|
||
| [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"] | ||
| asm-keccak = ["revm-interpreter/asm-keccak", "revm-precompile/asm-keccak"] | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.