Skip to content

Commit

Permalink
added Clone deriver to DeserializationError
Browse files Browse the repository at this point in the history
  • Loading branch information
irakliyk committed Dec 7, 2023
1 parent 1a6992f commit 2921a2e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 0.7.4 (2023-12-07) - `utils/core` crate only
* Added `Clone` derive to `DeserializationError`.

## 0.7.3 (2023-12-06) - `utils/core` crate only
* Added default deserializer implementations (#233)

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.7.3"
version = "0.7.4"
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.7.3"
documentation = "https://docs.rs/winter-utils/0.7.4"
categories = ["cryptography", "no-std"]
keywords = ["serialization", "transmute"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion utils/core/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use core::fmt;
// ================================================================================================

/// Defines errors which can occur during deserialization.
#[derive(Debug, PartialEq, Eq)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum DeserializationError {
/// Bytes in the input do not represent a valid value.
InvalidValue(String),
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
Expand Up @@ -3,7 +3,7 @@
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.

use super::{Deserializable, DeserializationError, Vec};
use super::{Deserializable, DeserializationError, String, Vec};

// BYTE READER TRAIT
// ================================================================================================
Expand Down
2 changes: 1 addition & 1 deletion utils/core/src/serde/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.

use super::{DeserializationError, Vec};
use super::{string::String, DeserializationError, Vec};

mod byte_reader;
pub use byte_reader::{ByteReader, SliceReader};
Expand Down

0 comments on commit 2921a2e

Please sign in to comment.