arnaucube
arnaucube/ark-r1cs-stdPublic Self-hosted repository
Let `cargo build` work again for the new arkworks-rs algebra (#97)

* pr

* reduce test time
Weikeng Chen w.k@berkeley.edu
Sun, 21 Aug 2022 20:10:14 -0700
commit

db6a3d6687b84935b92429efb902fb11c4fdad9f

parent

6d64f379a27011b3629cf4c9cb38b7b7b695d5a0

3 files changed, 27 insertions(+), 8 deletions(-)

jump to
M Cargo.toml → 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 }

@@ -51,6 +45,31 @@ [[bench]]

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]
M src/groups/curves/short_weierstrass/mod.rs → src/groups/curves/short_weierstrass/mod.rs

@@ -6,7 +6,7 @@ AffineCurve, ProjectiveCurve,

}; 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};
M src/groups/curves/twisted_edwards/mod.rs → src/groups/curves/twisted_edwards/mod.rs

@@ -12,7 +12,7 @@

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