Skip to content

Commit 33beaf4

Browse files
committed
Make it possible to build with the "circuit" feature for no_std.
Signed-off-by: Daira-Emma Hopwood <[email protected]>
1 parent fcb14de commit 33beaf4

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
echo "#![no_std]" > ./ci-build/src/lib.rs
6464
- name: Add dependencies of the synthetic crate (e.g. sapling-crypto)
6565
working-directory: ./ci-build
66-
run: cargo add --no-default-features --path ../crate_root
66+
run: cargo add --no-default-features --features "circuit" --path ../crate_root
6767
- name: Add lazy_static with the spin_no_std feature
6868
working-directory: ./ci-build
6969
run: cargo add lazy_static --no-default-features --features "spin_no_std"

.github/workflows/lints-stable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
echo "#![no_std]" > ./ci-build/src/lib.rs
4444
- name: Add dependencies of the synthetic crate (e.g. sapling-crypto)
4545
working-directory: ./ci-build
46-
run: cargo add --no-default-features --path ../crate_root
46+
run: cargo add --no-default-features --features "circuit" --path ../crate_root
4747
- name: Add lazy_static with the spin_no_std feature
4848
working-directory: ./ci-build
4949
run: cargo add lazy_static --no-default-features --features "spin_no_std"

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ bench = false
8383
[features]
8484
default = ["circuit", "multicore", "std"]
8585
std = ["core2/std", "group/wnaf-memuse", "reddsa/std"]
86-
circuit = ["dep:halo2_gadgets", "dep:halo2_proofs", "std"]
86+
circuit = ["dep:halo2_gadgets", "dep:halo2_proofs"]
8787
unstable-frost = []
8888
multicore = ["halo2_proofs?/multicore"]
8989
dev-graph = ["halo2_proofs?/dev-graph", "image", "plotters"]

src/bundle.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ use alloc::vec::Vec;
44

55
pub mod commitments;
66

7-
#[cfg(feature = "circuit")]
7+
#[cfg(all(feature = "circuit", feature = "std"))]
88
mod batch;
9-
#[cfg(feature = "circuit")]
9+
#[cfg(all(feature = "circuit", feature = "std"))]
1010
pub use batch::BatchValidator;
1111

1212
use core::fmt;

0 commit comments

Comments
 (0)