-
Notifications
You must be signed in to change notification settings - Fork 303
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
Fix build for wasm32/64-unknown-unknown without std #1528
Conversation
}; | ||
#![cfg_attr(not(std), no_std)] | ||
|
||
extern crate alloc; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only need alloc conditionally imported here
extern crate alloc; | |
#[cfg(not(feature = "parallel"))] | |
extern crate alloc; |
plonky2/Cargo.toml
Outdated
serde_json = "1.0" | ||
serde_json = { version = "1.0", default-features = false, features = ["alloc"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This actually should be moved to [dev-dependencies]
, it's not being used by the library (hence why it compiles fine against wasm targets), only by the fibonacci_serialization
example which does require std
anyway.
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you for fixing this!
I authored #1335 and I casually noticed this PR. I think |
Yeah I've been telling myself this as well seeing this behavior. Will do shortly. |
fixes #1527