Closed xxuejie closed 1 year ago
Ah, the problem is that with sqrt-table
enabled we use core
and alloc
(so not purely no-std
), but lazy_static
depends on std
specifically. Likely not noticed before because usually people running with alloc
are just running with std
.
While pasta_curves is written as a no_std library,
lazy_static
still usesstd
, this means compiling will fail in ano_std
environment withsqrt-table
feature enabled.This PR changes to use
no_std
version oflazy_static
, which fixes the problem.