From 294c86f6c6a1b700cbe2f060ed38049d5b55f897 Mon Sep 17 00:00:00 2001 From: Han Date: Thu, 5 Oct 2023 16:20:29 +0800 Subject: [PATCH] Re-export also mod `pairing` and remove flag `reexport` to alwasy re-export (#93) fix: re-export also mod `pairing` and remove flag `reexport` to alwasy re-export --- Cargo.toml | 3 +-- src/lib.rs | 11 +++-------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 43fa7d03..dac2d327 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,7 +36,7 @@ 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"] @@ -44,7 +44,6 @@ bn256-table = [] derive_serde = ["serde/derive", "serde_arrays", "hex"] prefetch = [] print-trace = ["ark-std/print-trace"] -reexport = [] [profile.bench] opt-level = 3 diff --git a/src/lib.rs b/src/lib.rs index 670a6448..5bd7d506 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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;