Skip to content

Commit 1223fe4

Browse files
authored
Fix no_std when the R1CS feature is on (#52)
1 parent 3a83d9f commit 1223fe4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,5 @@ jobs:
117117

118118
- name: crypto-primitives
119119
run: |
120-
cargo build --no-default-features --target aarch64-unknown-none
121-
cargo check --examples --no-default-features --target aarch64-unknown-none
120+
cargo build --no-default-features --features=r1cs --target aarch64-unknown-none
121+
cargo check --examples --no-default-features --features=r1cs --target aarch64-unknown-none

src/encryption/elgamal/constraints.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use ark_ff::{
1010
fields::{Field, PrimeField},
1111
to_bytes, Zero,
1212
};
13-
use core::{borrow::Borrow, marker::PhantomData};
13+
use ark_std::{borrow::Borrow, marker::PhantomData, vec::Vec};
1414

1515
pub type ConstraintF<C> = <<C as ProjectiveCurve>::BaseField as Field>::BasePrimeField;
1616

0 commit comments

Comments
 (0)