Skip to content

Commit

Permalink
dependencies: move once_cell to std feature
Browse files Browse the repository at this point in the history
`decaf377` is failing to compile with default features on
`thumbv7em-none-eabihf` due to the fact that
`std` is required by `once_cell` because it does not declare
`#![no_std]`
  • Loading branch information
redshiftzero committed Jan 26, 2024
1 parent 4c8a7d1 commit 661c356
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ license = "MIT OR Apache-2.0"
[dependencies]
# no-alloc, no-std
cfg-if = "1.0"
hex = { version ="=0.4.2", default-features = false }
once_cell = { version= "1.8", default-features = false }
hex = { version ="=0.4.2", default-features = false }
subtle = "2.5"
tracing-subscriber = { version = "0.3", default-features = false }
zeroize = { version = "1.7", default-features = false }
Expand All @@ -32,6 +31,7 @@ ark-bls12-377 = { version = "0.4", optional = true }
ark-ed-on-bls12-377 = { version = "0.4", optional = true }
ark-groth16 = { version = "0.4", optional = true }
ark-snark = { version = "0.4", optional = true }
once_cell = { version= "1.8", optional = true, default-features = false }

# This matches what ark-std (a library for no_std compatibility) does, having
# a default feature of std - without the ark-std std feature, decaf377 doesn't
Expand Down

0 comments on commit 661c356

Please sign in to comment.