make edwards an optional feature, and separate benches

This commit is contained in:
Neemek 2025-11-03 18:55:38 +01:00
parent 28f58d7222
commit 3c61f6f043
5 changed files with 59 additions and 39 deletions

View file

@ -1,3 +1,5 @@
#![cfg(feature = "edwards")]
use crate::traits::{Curve, Point};
use crypto_bigint::{AddMod, ConstZero, Integer, InvMod, MulMod, NonZero, SubMod, U448};
use std::ops::Div;

View file

@ -1,6 +1,7 @@
#[macro_use]
mod macros;
#[cfg(feature = "edwards")]
pub mod edwards;
pub mod montgomery;
pub mod traits;