msimms / ActivityAnalyzer

Analyzes GPX, TCX, and FIT files. Automatically identifies intervals. Allows files to be split and exported. Does all processing in browser.
MIT License
18 stars 4 forks source link

Unable to build project #11

Open voigt opened 2 years ago

voigt commented 2 years ago

Hey, first of all: cool project!

However, unfortunately, I'm not able to build it on my own:

wasm-pack build --target web 
[INFO]: 🎯  Checking for the Wasm target...
[INFO]: 🌀  Compiling to Wasm...
   Compiling packed_simd_2 v0.3.7
error[E0554]: `#![feature]` may not be used on the stable release channel
   --> /Users/cvoigt/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd_2-0.3.7/src/lib.rs:214:1
    |
214 | / #![feature(
215 | |     adt_const_params,
216 | |     repr_simd,
217 | |     rustc_attrs,
...   |
226 | |     custom_inner_attributes,
227 | | )]
    | |__^

For more information about this error, try `rustc --explain E0554`.
error: could not compile `packed_simd_2` due to previous error
Error: Compiling your crate to WebAssembly failed
Caused by: failed to execute `cargo build`: exited with exit status: 101
  full command: "cargo" "build" "--lib" "--release" "--target" "wasm32-unknown-unknown"

What am I missing? While I have nightly available, I don't think it is used by wasm-pack. Actually, I'm not even sure if this is really the issue...

$ rustup update                           
info: syncing channel updates for 'stable-x86_64-apple-darwin'
info: syncing channel updates for 'nightly-x86_64-apple-darwin'
info: checking for self-updates

   stable-x86_64-apple-darwin unchanged - rustc 1.60.0 (7737e0b5c 2022-04-04)
  nightly-x86_64-apple-darwin unchanged - rustc 1.62.0-nightly (f1f721e64 2022-05-13)

info: cleaning up downloads & tmp directories

$ wasm-pack --version
wasm-pack 0.10.2

Any hint is appreciated :)

voigt commented 2 years ago

fyi:

I've been able to resolve this issue by following this solution.

$ rustup run nightly $HOME/.cargo/bin/wasm-pack build --target web
msimms commented 2 years ago

Just saw this. Glad you were able to fix it. I might need to update the documentation.