From 6de3bb83ff2a00e2b00b5d1d87d36fe7176d8df6 Mon Sep 17 00:00:00 2001 From: Andrei <122784628+andrei-near@users.noreply.github.com> Date: Wed, 2 Oct 2024 15:03:38 +0300 Subject: [PATCH] fuzz profile --- Cargo.toml | 1 + core/crypto/Cargo.toml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index dd36d922812..5ae036a0474 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -447,6 +447,7 @@ debug-assertions = true # Used for fuzzing, LTO is ill-supported as of 2023-09 and so should not be enabled. [profile.fuzz] inherits = "dev" +features = ["near-crypto/rand-std"] opt-level = 3 incremental = false codegen-units = 1 diff --git a/core/crypto/Cargo.toml b/core/crypto/Cargo.toml index e6d234589fd..5cf764bdf34 100644 --- a/core/crypto/Cargo.toml +++ b/core/crypto/Cargo.toml @@ -43,7 +43,8 @@ curve25519-dalek = { workspace = true, features = ["rand_core"] } [features] default = ["rand"] -rand = ["secp256k1/rand-std", "rand/getrandom", "ed25519-dalek/rand_core"] +rand = ["secp256k1/rand", "rand/getrandom", "ed25519-dalek/rand_core"] +rand-std = ["secp256k1/rand-std"] protocol_schema = [ "near-schema-checker-lib/protocol_schema",