From bdc56265bc3c02ad94b2fcd5997966e31e87dbc1 Mon Sep 17 00:00:00 2001 From: Jose Daniel Hernandez Date: Mon, 28 Mar 2022 14:02:23 -0600 Subject: [PATCH] Bump serde-big-array from 0.3.2 to 0.4.1 Bumps [serde-big-array](https://github.com/est31/serde-big-array) from 0.3.2 to 0.4.1. - [Release notes](https://github.com/est31/serde-big-array/releases) - [Commits](https://github.com/est31/serde-big-array/compare/v0.3.2...v0.4.1) --- updated-dependencies: - dependency-name: serde-big-array dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Cargo.lock | 5 ++--- vrf/Cargo.toml | 2 +- vrf/src/vrf.rs | 5 +---- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 75ea1794b2..41f44890b2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4459,12 +4459,11 @@ dependencies = [ [[package]] name = "serde-big-array" -version = "0.3.2" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18b20e7752957bbe9661cff4e0bb04d183d0948cdab2ea58cdb9df36a61dfe62" +checksum = "3323f09a748af288c3dc2474ea6803ee81f118321775bffa3ac8f7e65c5e90e7" dependencies = [ "serde", - "serde_derive", ] [[package]] diff --git a/vrf/Cargo.toml b/vrf/Cargo.toml index ed2634cf82..8fbac3b9df 100644 --- a/vrf/Cargo.toml +++ b/vrf/Cargo.toml @@ -17,7 +17,7 @@ log = { package = "tracing", version = "0.1", features = ["log"] } num-traits = "0.2" rand = "0.8" serde = { version = "1.0", features = ["derive"], optional = true } -serde-big-array = { version = "0.3.2", optional = true } +serde-big-array = { version = "0.4.1", optional = true } sha2 = "0.9" beserial = { path = "../beserial" } diff --git a/vrf/src/vrf.rs b/vrf/src/vrf.rs index 7c52110f83..9c816d4bdd 100644 --- a/vrf/src/vrf.rs +++ b/vrf/src/vrf.rs @@ -13,7 +13,7 @@ use curve25519_dalek::scalar::Scalar; use curve25519_dalek::traits::IsIdentity; use rand::prelude::*; #[cfg(feature = "serde-derive")] -use serde_big_array::big_array; +use serde_big_array::BigArray; use sha2::{Digest, Sha256, Sha512}; use beserial::{Deserialize, Serialize, SerializingError}; @@ -41,9 +41,6 @@ pub enum VrfUseCase { RewardDistribution = 4, } -#[cfg(feature = "serde-derive")] -big_array! { BigArray; } - create_typed_array!(VrfEntropy, u8, 32); impl VrfEntropy {