-
Notifications
You must be signed in to change notification settings - Fork 57
Fix halo2_proofs features for wasm32 build & add ci for wasm build. #381
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 all commits
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -30,7 +30,7 @@ ff = "0.13" | |||||
| fpe = "0.5" | ||||||
| group = { version = "0.13", features = ["wnaf-memuse"] } | ||||||
| halo2_gadgets = "0.2" | ||||||
| halo2_proofs = "0.2" | ||||||
| halo2_proofs = { version = "0.2", default-features = false, features = ["batch"] } | ||||||
|
Contributor
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. This makes the |
||||||
| hex = "0.4" | ||||||
| lazy_static = "1" | ||||||
| memuse = { version = "0.2.1", features = ["nonempty"] } | ||||||
|
|
@@ -66,6 +66,9 @@ pprof = { version = "0.9", features = ["criterion", "flamegraph"] } # MSRV 1.56 | |||||
| bench = false | ||||||
|
|
||||||
| [features] | ||||||
| default = ["halo2-batch", "halo2-multicore"] | ||||||
|
Contributor
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. Do these need to be named differently from the downstream features? They are about batching and/or using multicore for Orchard Action proofs; the fact that those are Halo 2 proofs is an implementation detail.
Contributor
Author
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 concern here is that these feature flags don't actually change anything in
Contributor
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. If
Contributor
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. Put another way, this is effectively the same as having a
Contributor
Author
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. Fixed in #383 |
||||||
| halo2-batch = ["halo2_proofs/batch"] | ||||||
|
Contributor
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. Per above, I think this can be removed:
Suggested change
However, if we do retain it (and allow |
||||||
| halo2-multicore = ["halo2_proofs/multicore"] | ||||||
|
Contributor
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.
Suggested change
This is then the same thing we do in |
||||||
| dev-graph = ["halo2_proofs/dev-graph", "image", "plotters"] | ||||||
| test-dependencies = ["proptest"] | ||||||
|
|
||||||
|
|
||||||
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.
Just curious – are we expecting to have additional cross-targets, or is this simply to have consistent variable declarations? (as opposed to using
env)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.
On a couple of the other crates we have additional targets; I only added this one because that's the only target that
librustzcashhas in its CI.