Skip to content

Commit

Permalink
Release v0.3 (#295)
Browse files Browse the repository at this point in the history
* Add the Cargo.toml

* use ^0.3.0 for ark-std like others

* fix gen_range change
  • Loading branch information
weikengchen authored Jun 6, 2021
1 parent aa0c96f commit 3b589fe
Show file tree
Hide file tree
Showing 13 changed files with 48 additions and 38 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@

### Breaking changes

### Features

### Improvements

### Bug fixes

## v0.3.0

### Breaking changes

- [\#285](https://github.com/arkworks-rs/algebra/pull/285) (ark-ec) Remove `ATE_LOOP_COUNT_IS_NEGATIVE` from BN curve parameter trait.
- [\#292](https://github.com/arkworks-rs/algebra/pull/292) (ark-ec) Remove `CycleEngine`.
- [\#293](https://github.com/arkworks-rs/algebra/pull/293) (ark-ff) Remove `ark_ff::test_rng`.
Expand Down
8 changes: 4 additions & 4 deletions ec/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ark-ec"
version = "0.2.0"
version = "0.3.0"
authors = [ "arkworks contributors" ]
description = "A library for elliptic curves and pairings"
homepage = "https://arkworks.rs"
Expand All @@ -13,9 +13,9 @@ license = "MIT/Apache-2.0"
edition = "2018"

[dependencies]
ark-std = { version = "0.2.0", default-features = false }
ark-serialize = { version = "^0.2.0", path = "../serialize", default-features = false }
ark-ff = { version = "^0.2.0", path = "../ff", default-features = false }
ark-std = { version = "^0.3.0", default-features = false }
ark-serialize = { version = "^0.3.0", path = "../serialize", default-features = false }
ark-ff = { version = "^0.3.0", path = "../ff", default-features = false }
derivative = { version = "2", features = ["use_core"] }
num-traits = { version = "0.2", default-features = false }
rayon = { version = "1", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion ff-asm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ark-ff-asm"
version = "0.2.0"
version = "0.3.0"
authors = [ "arkworks contributors" ]
description = "A library for generating x86-64 assembly for finite field multiplication"
homepage = "https://arkworks.rs"
Expand Down
2 changes: 1 addition & 1 deletion ff-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ark-ff-macros"
version = "0.2.0"
version = "0.3.0"
authors = [ "arkworks contributors" ]
description = "A library for generating x86-64 assembly for finite field multiplication"
homepage = "https://arkworks.rs"
Expand Down
10 changes: 5 additions & 5 deletions ff/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ark-ff"
version = "0.2.0"
version = "0.3.0"
authors = [ "arkworks contributors" ]
description = "A library for finite fields"
homepage = "https://arkworks.rs"
Expand All @@ -14,10 +14,10 @@ edition = "2018"
build = "build.rs"

[dependencies]
ark-ff-asm = { version = "^0.2.0", path = "../ff-asm" }
ark-ff-macros = { version = "^0.2.0", path = "../ff-macros" }
ark-std = { version = "0.2.0", default-features = false }
ark-serialize = { version = "^0.2.0", path = "../serialize", default-features = false }
ark-ff-asm = { version = "^0.3.0", path = "../ff-asm" }
ark-ff-macros = { version = "^0.3.0", path = "../ff-macros" }
ark-std = { version = "^0.3.0", default-features = false }
ark-serialize = { version = "^0.3.0", path = "../serialize", default-features = false }
derivative = { version = "2", features = ["use_core"] }
num-traits = { version = "0.2", default-features = false }
paste = "1.0"
Expand Down
10 changes: 5 additions & 5 deletions poly-benches/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ark-poly-benches"
version = "0.2.0"
version = "0.3.0"
authors = [ "arkworks contributors" ]
description = "A library for benchmarking finite-field FFTs"
include = ["Cargo.toml", "src", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
Expand All @@ -9,10 +9,10 @@ edition = "2018"
publish = false

[dependencies]
ark-ff = { version = "^0.2.0", path = "../ff" }
ark-poly = { version = "^0.2.0", path = "../poly" }
ark-std = { version = "0.2.0", default-features = false }
ark-test-curves = { version = "^0.2.0", path = "../test-curves", default-features = false, features = [ "bls12_381_scalar_field", "mnt4_753_curve" ] }
ark-ff = { version = "^0.3.0", path = "../ff" }
ark-poly = { version = "^0.3.0", path = "../poly" }
ark-std = { version = "^0.3.0", default-features = false }
ark-test-curves = { version = "^0.3.0", path = "../test-curves", default-features = false, features = [ "bls12_381_scalar_field", "mnt4_753_curve" ] }
criterion = "0.3.1"
rayon = { version = "1", optional = true }

Expand Down
2 changes: 1 addition & 1 deletion poly-benches/benches/dense_uv_polynomial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fn bench_sparse_poly_evaluate<F: Field>(b: &mut Bencher, non_zero_entries: &usiz
let mut rng = &mut ark_std::test_rng();
let mut inner: Vec<(usize, F)> = Vec::with_capacity(*non_zero_entries);
(0..*non_zero_entries)
.for_each(|_| inner.push((rng.gen_range(0, MAX_DEGREE), F::rand(&mut rng))));
.for_each(|_| inner.push((rng.gen_range(0..MAX_DEGREE), F::rand(&mut rng))));
let poly = SparsePolynomial::<F>::from_coefficients_vec(inner);
b.iter(|| {
// Per benchmark iteration
Expand Down
8 changes: 4 additions & 4 deletions poly/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ark-poly"
version = "0.2.0"
version = "0.3.0"
authors = [ "arkworks contributors" ]
description = "A library for efficient polynomial arithmetic via FFTs over finite fields"
homepage = "https://arkworks.rs"
Expand All @@ -13,9 +13,9 @@ license = "MIT/Apache-2.0"
edition = "2018"

[dependencies]
ark-ff = { version = "^0.2.0", path = "../ff", default-features = false }
ark-serialize = { version = "^0.2.0", path = "../serialize", default-features = false, features = ["derive"] }
ark-std = { version = "0.2.0", default-features = false }
ark-ff = { version = "^0.3.0", path = "../ff", default-features = false }
ark-serialize = { version = "^0.3.0", path = "../serialize", default-features = false, features = ["derive"] }
ark-std = { version = "^0.3.0", default-features = false }
rayon = { version = "1", optional = true }
derivative = { version = "2", default-features = false, features = [ "use_core" ] }
hashbrown = { version = "0.11.1"}
Expand Down
4 changes: 2 additions & 2 deletions poly/src/polynomial/multivariate/sparse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,15 +253,15 @@ mod tests {
/// Generate random `l`-variate polynomial of maximum individual degree `d`
fn rand_poly<R: Rng>(l: usize, d: usize, rng: &mut R) -> SparsePolynomial<Fr, SparseTerm> {
let mut random_terms = Vec::new();
let num_terms = rng.gen_range(1, 1000);
let num_terms = rng.gen_range(1..1000);
// For each term, randomly select up to `l` variables with degree
// in [1,d] and random coefficient
random_terms.push((Fr::rand(rng), SparseTerm::new(vec![])));
for _ in 1..num_terms {
let term = (0..l)
.map(|i| {
if rng.gen_bool(0.5) {
Some((i, rng.gen_range(1, d + 1)))
Some((i, rng.gen_range(1..(d + 1))))
} else {
None
}
Expand Down
2 changes: 1 addition & 1 deletion serialize-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ark-serialize-derive"
version = "0.2.0"
version = "0.3.0"
authors = [ "arkworks Contributors" ]
description = "A library for deriving serialization traits for the arkworks ecosystem"
homepage = "https://arkworks.rs"
Expand Down
6 changes: 3 additions & 3 deletions serialize/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ark-serialize"
version = "0.2.0"
version = "0.3.0"
authors = [ "arkworks contributors" ]
description = "A library for serializing types in the arkworks ecosystem"
homepage = "https://arkworks.rs"
Expand All @@ -13,8 +13,8 @@ license = "MIT/Apache-2.0"
edition = "2018"

[dependencies]
ark-serialize-derive = { version = "^0.2.0", path = "../serialize-derive", optional = true }
ark-std = { version = "0.2.0", default-features = false }
ark-serialize-derive = { version = "^0.3.0", path = "../serialize-derive", optional = true }
ark-std = { version = "^0.3.0", default-features = false }
digest = { version = "0.9", default-features = false }

[dev-dependencies]
Expand Down
12 changes: 6 additions & 6 deletions test-curves/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ark-test-curves"
version = "0.2.0"
version = "0.3.0"
authors = [ "arkworks contributors" ]
description = "A library for testing ark-ec & ark-poly"
homepage = "https://arkworks.rs"
Expand All @@ -13,13 +13,13 @@ license = "MIT/Apache-2.0"
edition = "2018"

[dependencies]
ark-std = { version = "^0.2.0", default-features = false }
ark-ff = { version = "^0.2.0", path = "../ff", default-features = false }
ark-ec = { version = "^0.2.0", path = "../ec", default-features = false }
ark-std = { version = "^0.3.0", default-features = false }
ark-ff = { version = "^0.3.0", path = "../ff", default-features = false }
ark-ec = { version = "^0.3.0", path = "../ec", default-features = false }

[dev-dependencies]
ark-serialize = { version = "^0.2.0", path = "../serialize", default-features = false }
ark-algebra-test-templates = { version = "^0.2.0", path = "../test-templates", default-features = false }
ark-serialize = { version = "^0.3.0", path = "../serialize", default-features = false }
ark-algebra-test-templates = { version = "^0.3.0", path = "../test-templates", default-features = false }

[features]
default = []
Expand Down
10 changes: 5 additions & 5 deletions test-templates/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ark-algebra-test-templates"
version = "0.2.0"
version = "0.3.0"
authors = [ "arkworks contributors" ]
description = "A library for tests for finite fields, elliptic curves, and pairings"
homepage = "https://arkworks.rs"
Expand All @@ -13,10 +13,10 @@ license = "MIT/Apache-2.0"
edition = "2018"

[dependencies]
ark-std = { version = "0.2.0", default-features = false }
ark-serialize = { version = "^0.2.0", path = "../serialize", default-features = false }
ark-ff = { version = "^0.2.0", path = "../ff", default-features = false }
ark-ec = { version = "^0.2.0", path = "../ec", default-features = false }
ark-std = { version = "^0.3.0", default-features = false }
ark-serialize = { version = "^0.3.0", path = "../serialize", default-features = false }
ark-ff = { version = "^0.3.0", path = "../ff", default-features = false }
ark-ec = { version = "^0.3.0", path = "../ec", default-features = false }

[features]
default = []
Expand Down

0 comments on commit 3b589fe

Please sign in to comment.