Skip to content

Commit

Permalink
Re-export also mod pairing and remove flag reexport to alwasy re-…
Browse files Browse the repository at this point in the history
…export (privacy-scaling-explorations#93)

fix: re-export also mod `pairing` and remove flag `reexport` to alwasy re-export
  • Loading branch information
han0110 authored Oct 5, 2023
1 parent ee7cb86 commit 294c86f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,14 @@ blake2b_simd = "1"
maybe-rayon = { version = "0.1.0", default-features = false }

[features]
default = ["reexport", "bits", "multicore"]
default = ["bits", "multicore"]
multicore = ["maybe-rayon/threads"]
asm = []
bits = ["ff/bits"]
bn256-table = []
derive_serde = ["serde/derive", "serde_arrays", "hex"]
prefetch = []
print-trace = ["ark-std/print-trace"]
reexport = []

[profile.bench]
opt-level = 3
Expand Down
11 changes: 3 additions & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,12 @@ pub mod secq256k1;

#[macro_use]
mod derive;
pub use pasta_curves::arithmetic::{Coordinates, CurveAffine, CurveExt};

// Re-export ff and group to simplify down stream dependencies
#[cfg(feature = "reexport")]
// Re-export to simplify down stream dependencies
pub use ff;
#[cfg(not(feature = "reexport"))]
use ff;
#[cfg(feature = "reexport")]
pub use group;
#[cfg(not(feature = "reexport"))]
use group;
pub use pairing;
pub use pasta_curves::arithmetic::{Coordinates, CurveAffine, CurveExt};

#[cfg(test)]
pub mod tests;
Expand Down

0 comments on commit 294c86f

Please sign in to comment.