Skip to content

Commit

Permalink
fix: add opt-in std support (#212)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sdbondi authored Nov 27, 2023
1 parent 91d1e77 commit 432a893
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 432a893

Please sign in to comment.