Compiling to wasm with crypto-primitives
feature is not possible on macOS
#231
Labels
[Type] Bug
Something isn't working
Bug Description
It is currently not possible to compile to the
wasm32-unknown-unknown
target on macOS when thecrypto-primitives
feature is enabled.The issue is that the library we use for some of the cryptographic primitives, secp256k1, doesn't support this target on macOS.
They are aware of the issue, but it sounds like a fix is not coming along soon. Actually, it sounds like it shouldn't work for
wasm32-unknown-unknown
on any platform, but it works on Linux (at least the parts we use in concordium-std).We might consider replacing it with a pure rust library if we can find a suitable one.
Steps to Reproduce
concordium-std
in a project (fx a smart contract ;))crypto-primitives
feature.wasm32-unknown-unknown
(fx by runningcargo concordium build
)Expected Result
Compiles successfully.
Actual Result
Compilation fails with:
Versions
The text was updated successfully, but these errors were encountered: