Skip to content

Commit

Permalink
move re-export behind a feature gate
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenfeizhang committed Mar 7, 2023
1 parent 5b97d11 commit c897666
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ paste = "1.0.11"
serde = { version = "1.0", default-features = false, optional = true }

[features]
default = [ ]
default = []
asm = []
prefetch = []
print-trace = [ "ark-std/print-trace" ]
derive_serde = [ "serde/derive" ]
reexport = []

[profile.bench]
opt-level = 3
Expand Down
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ pub use arithmetic::CurveAffineExt;
pub use pasta_curves::arithmetic::{Coordinates, CurveAffine, CurveExt};

// Re-export ff and group to simplify down stream dependencies
#[cfg(feature = "reexport")]
pub use ff;
#[cfg(not(feature = "reexport"))]
use ff;
#[cfg(feature = "reexport")]
pub use group;
#[cfg(not(feature = "reexport"))]
use group;

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

0 comments on commit c897666

Please sign in to comment.