Skip to content

Commit

Permalink
fix: include rln in bn254 feature
Browse files Browse the repository at this point in the history
  • Loading branch information
rymnc committed Mar 12, 2024
1 parent f95e89a commit 8332d61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ ffi = []
bls12_381 = []
bls12_377 = []
bn254 = []
include_rln_ffi = []
default = ["ffi"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
8 changes: 4 additions & 4 deletions src/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ cfg_if::cfg_if! {
const PROJECTIVE_SIZE: usize = 48;
} else if #[cfg(feature = "bn254")] {
use ark_bn254::{Bn254, Fr, G1Projective};
// we import this to prevent using multiple static libs
#[allow(unused_imports)]
use rln::ffi::*;
type Curve = Bn254;
const PROJECTIVE_SIZE: usize = 32;
} else {
Expand All @@ -26,10 +29,7 @@ cfg_if::cfg_if! {
}


// we import this to prevent using multiple static libs
#[cfg(feature = "include_rln_ffi")]
#[allow(unused_imports)]
use rln::ffi::*;

#[repr(C)]
#[derive(Debug)]
pub struct CFr([u8; 32]);
Expand Down

0 comments on commit 8332d61

Please sign in to comment.