From 619db6932200601058386f60853b718632c26680 Mon Sep 17 00:00:00 2001 From: Alex Xiong Date: Wed, 27 Jul 2022 16:03:04 +0800 Subject: [PATCH] more no_std fix --- primitives/Cargo.toml | 1 - rescue/src/lib.rs | 1 + utilities/Cargo.toml | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/primitives/Cargo.toml b/primitives/Cargo.toml index d6b1f835c..7c95359cd 100644 --- a/primitives/Cargo.toml +++ b/primitives/Cargo.toml @@ -40,7 +40,6 @@ digest = { version = "0.10.1", default-features = false } espresso-systems-common = { git = "https://github.com/espressosystems/espresso-systems-common", tag = "0.1.1" } [dev-dependencies] -rand_chacha = "^0.3" bincode = "1.0" quickcheck = "1.0.0" criterion = "0.3.1" diff --git a/rescue/src/lib.rs b/rescue/src/lib.rs index f14c2c456..113e325da 100644 --- a/rescue/src/lib.rs +++ b/rescue/src/lib.rs @@ -5,6 +5,7 @@ // along with the Jellyfish library. If not, see . #![deny(missing_docs)] +#![cfg_attr(not(feature = "std"), no_std)] //! This module implements Rescue hash function over the following fields //! - bls12_377 base field //! - ed_on_bls12_377 base field diff --git a/utilities/Cargo.toml b/utilities/Cargo.toml index 6ae08866e..61711341f 100644 --- a/utilities/Cargo.toml +++ b/utilities/Cargo.toml @@ -15,7 +15,7 @@ ark-ff = { version = "0.3.0", default-features = false } ark-ec = { version = "0.3.0", default-features = false } ark-serialize = { version = "0.3.0", default-features = false } -serde = { version = "1.0", features = ["derive"] } +serde = { version = "1.0", default-features = false, features = ["derive"] } anyhow = { version = "^1.0", default-features = false } displaydoc = { version = "0.2.3", default-features = false }