dfinity / examples

Example applications, microservices, and code samples for the Internet Computer
https://dfinity.org
Apache License 2.0
547 stars 394 forks source link

Add `llvm` with `wasm32-unknown-unknown` as requirement to rust basic bitcoin #1017

Closed altkdf closed 1 month ago

altkdf commented 1 month ago

If llvm with wasm32-unknown-unknown is not installed, the compilation would error with something similar to

warning: error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: 1 error generated.
warning: error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: 1 error generated.

error: failed to run custom build command for `secp256k1-sys v0.9.2`

See https://github.com/rust-bitcoin/rust-bitcoin/issues/2331 for more details.