From 2921a2eaf05f7aa1892ff23f55bacd5258da4ee4 Mon Sep 17 00:00:00 2001 From: Irakliy Khaburzaniya Date: Wed, 6 Dec 2023 23:06:50 -0800 Subject: [PATCH] added Clone deriver to DeserializationError --- CHANGELOG.md | 3 +++ utils/core/Cargo.toml | 4 ++-- utils/core/src/errors.rs | 2 +- utils/core/src/serde/byte_reader.rs | 2 +- utils/core/src/serde/mod.rs | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 76056764d..6a13415ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/utils/core/Cargo.toml b/utils/core/Cargo.toml index c73d9c3fb..9e0bc8aaf 100644 --- a/utils/core/Cargo.toml +++ b/utils/core/Cargo.toml @@ -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" diff --git a/utils/core/src/errors.rs b/utils/core/src/errors.rs index d1ba7d31a..b291d8cc7 100644 --- a/utils/core/src/errors.rs +++ b/utils/core/src/errors.rs @@ -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), diff --git a/utils/core/src/serde/byte_reader.rs b/utils/core/src/serde/byte_reader.rs index 2ca668b56..f784793f8 100644 --- a/utils/core/src/serde/byte_reader.rs +++ b/utils/core/src/serde/byte_reader.rs @@ -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 // ================================================================================================ diff --git a/utils/core/src/serde/mod.rs b/utils/core/src/serde/mod.rs index ed84ea3d2..6f265ffdd 100644 --- a/utils/core/src/serde/mod.rs +++ b/utils/core/src/serde/mod.rs @@ -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};