Skip to content

Commit db6a3d6

Browse files
authored
Let cargo build work again for the new arkworks-rs algebra (#97)
* pr * reduce test time
1 parent 6d64f37 commit db6a3d6

File tree

3 files changed

+27
-8
lines changed

3 files changed

+27
-8
lines changed

Cargo.toml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ include = ["Cargo.toml", "src", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
1212
license = "MIT/Apache-2.0"
1313
edition = "2018"
1414

15-
[profile.release]
16-
panic = 'abort'
17-
18-
[profile.dev]
19-
panic = 'abort'
20-
2115
[dependencies]
2216
ark-ff = { version = "^0.3.0", default-features = false }
2317
ark-ec = { version = "^0.3.0", default-features = false }
@@ -52,6 +46,31 @@ name = "nonnative-bench"
5246
path = "benches/bench.rs"
5347
harness = false
5448

49+
[profile.release]
50+
opt-level = 3
51+
lto = "thin"
52+
incremental = true
53+
panic = 'abort'
54+
55+
[profile.bench]
56+
opt-level = 3
57+
debug = false
58+
rpath = false
59+
lto = "thin"
60+
incremental = true
61+
debug-assertions = false
62+
63+
[profile.dev]
64+
opt-level = 0
65+
panic = 'abort'
66+
67+
[profile.test]
68+
opt-level = 3
69+
lto = "thin"
70+
incremental = true
71+
debug-assertions = true
72+
debug = true
73+
5574
# To be removed in the new release.
5675
[patch.crates-io]
5776
ark-std = { git = "https://github.com/arkworks-rs/std" }

src/groups/curves/short_weierstrass/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use ark_ec::{
66
};
77
use ark_ff::{BigInteger, BitIteratorBE, Field, One, PrimeField, Zero};
88
use ark_relations::r1cs::{ConstraintSystemRef, Namespace, SynthesisError};
9-
use core::{borrow::Borrow, marker::PhantomData};
9+
use ark_std::{borrow::Borrow, marker::PhantomData, ops::Mul};
1010
use non_zero_affine::NonZeroAffineVar;
1111

1212
use crate::{fields::fp::FpVar, prelude::*, ToConstraintFieldGadget, Vec};

src/groups/curves/twisted_edwards/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use ark_relations::r1cs::{ConstraintSystemRef, Namespace, SynthesisError};
1212
use crate::{prelude::*, ToConstraintFieldGadget, Vec};
1313

1414
use crate::fields::fp::FpVar;
15-
use core::{borrow::Borrow, marker::PhantomData};
15+
use ark_std::{borrow::Borrow, marker::PhantomData, ops::Mul};
1616

1717
/// An implementation of arithmetic for Montgomery curves that relies on
1818
/// incomplete addition formulae for the affine model, as outlined in the

0 commit comments

Comments
 (0)