From 432a893081bab1babaa6e5a712d84884f001d8ba Mon Sep 17 00:00:00 2001 From: Stan Bondi Date: Mon, 27 Nov 2023 12:05:05 +0400 Subject: [PATCH] fix: add opt-in std support (#212) There are cases where std is needed (barring workarounds). E.g. errors implementing std::error::Error. This PR adds the ability to opt-in to the stdlib. --- Cargo.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 3a0ccd7c..a3270183 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,6 +37,20 @@ rand = { version = "0.8" } [features] default = ["bulletproofs_plus", "serde", "precomputed_tables", "borsh"] +std = [ + "blake2/std", + "borsh?/std", + "digest/std", + "log/std", + "once_cell/std", + "rand_chacha/std", + "rand_core/std", + "serde?/std", + "sha3/std", + "snafu/std", + "tari_utilities/std", + "zeroize/std", +] precomputed_tables = [] [lib]