wasm-pack
wasm-pack copied to clipboard
Unable to build Rust dependency with C dependency
🐛 Bug description
Just like #621, I am unable to build when using a rust dependency with a C dependency.
I am using https://github.com/RamiHg/rust-libsamplerate and/or https://github.com/Prior99/rust-samplerate
🤔 Expected Behavior
wasm-pack build should succeed.
👟 Steps to reproduce
wasm-pack new testcd testcargo add rust-sampleratewasm-pack build
error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
🌍 Your environment
wasm-pack version: 0.10.3
rustc version: 1.62.0
OSX: 12.0.1
clang --version:
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: arm64-apple-darwin21.1.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin