diff --git a/Cargo.toml b/Cargo.toml index 56abe2d..d9ad88c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,12 +12,6 @@ include = ["Cargo.toml", "src", "README.md", "LICENSE-APACHE", "LICENSE-MIT"] license = "MIT/Apache-2.0" edition = "2018" -[profile.release] -panic = 'abort' - -[profile.dev] -panic = 'abort' - [dependencies] ark-ff = { version = "^0.3.0", default-features = false } ark-ec = { version = "^0.3.0", default-features = false } @@ -52,6 +46,31 @@ name = "nonnative-bench" path = "benches/bench.rs" harness = false +[profile.release] +opt-level = 3 +lto = "thin" +incremental = true +panic = 'abort' + +[profile.bench] +opt-level = 3 +debug = false +rpath = false +lto = "thin" +incremental = true +debug-assertions = false + +[profile.dev] +opt-level = 0 +panic = 'abort' + +[profile.test] +opt-level = 3 +lto = "thin" +incremental = true +debug-assertions = true +debug = true + # To be removed in the new release. [patch.crates-io] ark-std = { git = "https://github.com/arkworks-rs/std" } diff --git a/src/groups/curves/short_weierstrass/mod.rs b/src/groups/curves/short_weierstrass/mod.rs index 9d7146b..a9111e5 100644 --- a/src/groups/curves/short_weierstrass/mod.rs +++ b/src/groups/curves/short_weierstrass/mod.rs @@ -6,7 +6,7 @@ use ark_ec::{ }; use ark_ff::{BigInteger, BitIteratorBE, Field, One, PrimeField, Zero}; use ark_relations::r1cs::{ConstraintSystemRef, Namespace, SynthesisError}; -use core::{borrow::Borrow, marker::PhantomData}; +use ark_std::{borrow::Borrow, marker::PhantomData, ops::Mul}; use non_zero_affine::NonZeroAffineVar; use crate::{fields::fp::FpVar, prelude::*, ToConstraintFieldGadget, Vec}; diff --git a/src/groups/curves/twisted_edwards/mod.rs b/src/groups/curves/twisted_edwards/mod.rs index 32d6013..6461a1b 100644 --- a/src/groups/curves/twisted_edwards/mod.rs +++ b/src/groups/curves/twisted_edwards/mod.rs @@ -12,7 +12,7 @@ use ark_relations::r1cs::{ConstraintSystemRef, Namespace, SynthesisError}; use crate::{prelude::*, ToConstraintFieldGadget, Vec}; use crate::fields::fp::FpVar; -use core::{borrow::Borrow, marker::PhantomData}; +use ark_std::{borrow::Borrow, marker::PhantomData, ops::Mul}; /// An implementation of arithmetic for Montgomery curves that relies on /// incomplete addition formulae for the affine model, as outlined in the