Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build project #11

Open
voigt opened this issue May 14, 2022 · 2 comments
Open

Unable to build project #11

voigt opened this issue May 14, 2022 · 2 comments

Comments

@voigt
Copy link

voigt commented May 14, 2022

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
Copy link
Author

voigt commented May 17, 2022

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
Copy link
Owner

msimms commented May 26, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants