wasm-pack icon indicating copy to clipboard operation
wasm-pack copied to clipboard

Unable to build Rust dependency with C dependency

Open Secretmapper opened this issue 3 years ago • 0 comments

🐛 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

  1. wasm-pack new test
  2. cd test
  3. cargo add rust-samplerate
  4. wasm-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

Secretmapper avatar Jul 15 '22 23:07 Secretmapper