Skip to content

Commit

Permalink
Merge pull request #155 from vlopes11/vlopes11-153-fix-no-std-utils
Browse files Browse the repository at this point in the history
Fix no-std build for winter-utils
  • Loading branch information
irakliyk committed Feb 20, 2023
2 parents 326f790 + 861d7c5 commit fc1033a
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 25 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ on:

jobs:
check:
name: Check with all features
name: Check with ${{matrix.features}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
toolchain: [stable]
os: [ubuntu]
features: [--all-features, --no-default-features]
steps:
- uses: actions/checkout@main
- name: Install rust
Expand All @@ -26,7 +27,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: check
args: --all-features
args: --all-targets ${{matrix.features}}

test:
name: Test Rust ${{matrix.toolchain}} on ${{matrix.os}}
Expand Down
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 0.5.1 (2023-02-20)
* Fix no-std build for winter-utils (#153)

## 0.5.0 (2023-02-20)
* [BREAKING]: Refactored prover/verifier to take hash function as a generic parameter (#111).
* Introduced `FftInputs` trait (#124).
Expand Down Expand Up @@ -64,4 +67,4 @@
* Increased min version of `rustc` to 1.54.

## 0.1.0 (2021-08-03)
* Initial release
* Initial release
4 changes: 2 additions & 2 deletions air/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "winter-air"
version = "0.5.0"
version = "0.5.1"
description = "AIR components for the Winterfell STARK prover/verifier"
authors = ["winterfell contributors"]
readme = "README.md"
license = "MIT"
repository = "https://github.com/novifinancial/winterfell"
documentation = "https://docs.rs/winter-air/0.5.0"
documentation = "https://docs.rs/winter-air/0.5.1"
categories = ["cryptography", "no-std"]
keywords = ["crypto", "arithmetization", "air"]
edition = "2021"
Expand Down
4 changes: 2 additions & 2 deletions crypto/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "winter-crypto"
version = "0.5.0"
version = "0.5.1"
description = "Cryptographic library for the Winterfell STARK prover/verifier"
authors = ["winterfell contributors"]
readme = "README.md"
license = "MIT"
repository = "https://github.com/novifinancial/winterfell"
documentation = "https://docs.rs/winter-crypto/0.5.0"
documentation = "https://docs.rs/winter-crypto/0.5.1"
categories = ["cryptography", "no-std"]
keywords = ["crypto", "merkle-tree", "hash"]
edition = "2021"
Expand Down
4 changes: 2 additions & 2 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "examples"
version = "0.5.0"
version = "0.5.1"
description = "Examples of using Winterfell STARK prover/verifier"
authors = ["winterfell contributors"]
readme = "README.md"
Expand Down Expand Up @@ -44,4 +44,4 @@ harness = false

[[bench]]
name = "rescue"
harness = false
harness = false
4 changes: 2 additions & 2 deletions fri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "winter-fri"
version = "0.5.0"
version = "0.5.1"
description = "Implementation of FRI protocol for the Winterfell STARK prover/verifier"
authors = ["winterfell contributors"]
readme = "README.md"
license = "MIT"
repository = "https://github.com/novifinancial/winterfell"
documentation = "https://docs.rs/winter-fri/0.5.0"
documentation = "https://docs.rs/winter-fri/0.5.1"
categories = ["cryptography", "no-std"]
keywords = ["crypto", "polynomial", "commitments"]
edition = "2021"
Expand Down
4 changes: 2 additions & 2 deletions math/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "winter-math"
version = "0.5.0"
version = "0.5.1"
description = "Math library for the Winterfell STARK prover/verifier"
authors = ["winterfell contributors"]
readme = "README.md"
license = "MIT"
repository = "https://github.com/novifinancial/winterfell"
documentation = "https://docs.rs/winter-math/0.5.0"
documentation = "https://docs.rs/winter-math/0.5.1"
categories = ["cryptography", "no-std"]
keywords = ["crypto", "finite-fields", "polynomials", "fft"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion math/src/field/f128/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

use super::{
AsBytes, BaseElement, ByteReader, Deserializable, DeserializationError, FieldElement,
StarkField, M,
StarkField, Vec, M,
};
use crate::field::{ExtensionOf, QuadExtension};
use core::convert::TryFrom;
Expand Down
4 changes: 2 additions & 2 deletions prover/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "winter-prover"
version = "0.5.0"
version = "0.5.1"
description = "Winterfell STARK prover"
authors = ["winterfell contributors"]
readme = "README.md"
license = "MIT"
repository = "https://github.com/novifinancial/winterfell"
documentation = "https://docs.rs/winter-prover/0.5.0"
documentation = "https://docs.rs/winter-prover/0.5.1"
categories = ["cryptography", "no-std"]
keywords = ["crypto", "zkp", "stark", "prover"]
edition = "2021"
Expand Down
4 changes: 2 additions & 2 deletions utils/core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "winter-utils"
version = "0.5.0"
version = "0.5.1"
description = "Utilities for the Winterfell STARK prover/verifier"
authors = ["winterfell contributors"]
readme = "README.md"
license = "MIT"
repository = "https://github.com/novifinancial/winterfell"
documentation = "https://docs.rs/winter-utils/0.5.0"
documentation = "https://docs.rs/winter-utils/0.5.1"
categories = ["cryptography", "no-std"]
keywords = ["serialization", "transmute"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion utils/core/src/serde/byte_reader.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use super::{Deserializable, DeserializationError};
use super::{Deserializable, DeserializationError, Vec};

// BYTE READER TRAIT
// ================================================================================================
Expand Down
4 changes: 2 additions & 2 deletions utils/rand/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "winter-rand-utils"
version = "0.5.0"
version = "0.5.1"
description = "Random value generation utilities for Winterfell crates"
authors = ["winterfell contributors"]
readme = "README.md"
license = "MIT"
repository = "https://github.com/novifinancial/winterfell"
documentation = "https://docs.rs/winter-rand-utils/0.5.0"
documentation = "https://docs.rs/winter-rand-utils/0.5.1"
categories = ["cryptography"]
keywords = ["rand"]
edition = "2021"
Expand Down
4 changes: 2 additions & 2 deletions verifier/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "winter-verifier"
version = "0.5.0"
version = "0.5.1"
description = "Winterfell STARK verifier"
authors = ["winterfell contributors"]
readme = "README.md"
license = "MIT"
repository = "https://github.com/novifinancial/winterfell"
documentation = "https://docs.rs/winter-verifier/0.5.0"
documentation = "https://docs.rs/winter-verifier/0.5.1"
categories = ["cryptography", "no-std"]
keywords = ["crypto", "zkp", "stark", "verifier"]
edition = "2021"
Expand Down
4 changes: 2 additions & 2 deletions winterfell/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "winterfell"
version = "0.5.0"
version = "0.5.1"
description = "Winterfell STARK prover and verifier"
authors = ["winterfell contributors"]
readme = "../README.md"
license = "MIT"
repository = "https://github.com/novifinancial/winterfell"
documentation = "https://docs.rs/winterfell/0.5.0"
documentation = "https://docs.rs/winterfell/0.5.1"
categories = ["cryptography", "no-std"]
keywords = ["crypto", "zkp", "stark", "prover", "verifier"]
edition = "2021"
Expand Down

0 comments on commit fc1033a

Please sign in to comment.