diff --git a/.github/workflows/dusk_ci.yml b/.github/workflows/dusk_ci.yml index 6ceb589..b996aca 100644 --- a/.github/workflows/dusk_ci.yml +++ b/.github/workflows/dusk_ci.yml @@ -16,7 +16,7 @@ jobs: command: check test_nightly: - name: Nightly tests + name: Nightly tests std runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -28,8 +28,23 @@ jobs: command: test args: --release - test_nightly_nostd: - name: Nightly tests + build_nightly_nostd: + name: Nightly build no_std + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + # ARM contains no std lib. Just core and alloc. + - run: rustup target add thumbv6m-none-eabi + - uses: actions-rs/cargo@v1 + with: + command: build + args: --release --no-default-features --target thumbv6m-none-eabi + + test_nightly_canon_feature: + name: Nightly tests canon runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -39,7 +54,7 @@ jobs: - uses: actions-rs/cargo@v1 with: command: test - args: --release --no-default-features + args: --release --no-default-features --features canon fmt: name: Rustfmt @@ -51,7 +66,7 @@ jobs: profile: minimal toolchain: nightly-2020-10-25 override: true - - run: rustup component add rustfmt + components: rustfmt - uses: actions-rs/cargo@v1 with: command: fmt diff --git a/Cargo.toml b/Cargo.toml index f5c2190..6ae7b11 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ homepage = "https://github.com/dusk-network/jubjub" license = "MIT/Apache-2.0" name = "dusk-jubjub" repository = "https://github.com/dusk-network/jubjub" -version = "0.9.0" +version = "0.10.0" keywords = ["cryptography", "jubjub", "zk-snarks", "ecc", "elliptic-curve"] categories =["algorithms", "cryptography", "science"] edition = "2018" @@ -20,11 +20,11 @@ exclude = [".github/workflows/ci.yml", "github/workflows/rust.yml", [dependencies] dusk-bytes = "0.1" -dusk-bls12_381 = {version="0.7", default-features=false} +dusk-bls12_381 = {version="0.8.0", default-features=false} subtle = {version="^2.3", default-features = false} rand_core = {version = "0.6", default-features=false} -canonical = {version = "0.5", optional = true} -canonical_derive = {version = "0.5", optional = true} +canonical = {version = "0.6", optional = true} +canonical_derive = {version = "0.6", optional = true} [dev-dependencies] rand_xorshift = {version="0.3", default-features = false} diff --git a/RELEASES.md b/RELEASES.md index 69214e3..60ab993 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,13 +1,17 @@ # Unreleased +# 0.10.0 +### Change +- Update `dusk-bls12_381` to `0.8.0`. [#73](https://github.com/dusk-network/jubjub/issues/73) +- Update `canonical` to `0.6.0`. [#78](https://github.com/dusk-network/jubjub/issues/78) + # 0.9.0 ### Fix -- Fix no_std compatibility for crate.[#67](https://github.com/dusk-network/jubjub/pull/67) +- Fix no_std compatibility for crate.[#67](https://github.com/dusk-network/jubjub/issues/67) ### Change - Set `blake2` as dev-dep. [#64](https://github.com/dusk-network/jubjub/issues/64) - # 0.8.1 ### Change - Fix on default-features prop of dusk-bls12_381 dependency [#61](https://github.com/dusk-network/jubjub/issues/61) diff --git a/src/fr.rs b/src/fr.rs index 5383900..d4b91b8 100644 --- a/src/fr.rs +++ b/src/fr.rs @@ -2,8 +2,6 @@ //! $\mathbb{F}_r$ where `r = //! 0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb7` -#[cfg(feature = "canon")] -use canonical::Canon; #[cfg(feature = "canon")] use canonical_derive::Canon; use core::cmp::{Ord, Ordering, PartialOrd}; diff --git a/src/lib.rs b/src/lib.rs index e83a510..27eccff 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -38,8 +38,6 @@ #[macro_use] extern crate std; -#[cfg(feature = "canon")] -use canonical::Canon; #[cfg(feature = "canon")] use canonical_derive::Canon; use core::ops::{Add, AddAssign, Mul, MulAssign, Neg, Sub, SubAssign};