rustwasm / wasm-pack

๐Ÿ“ฆโœจ your favorite rust -> wasm workflow tool!
https://rustwasm.github.io/wasm-pack/
Apache License 2.0
6.32k stars 409 forks source link

wasm-bindgen binary does not exist #1319

Open Trame0 opened 1 year ago

Trame0 commented 1 year ago

๐Ÿ› Bug description

Sceenshot

![Screenshot_20230804-013420_Termux](https://github.com/rustwasm/wasm-pack/assets/124529313/27d79d5a-be99-4d42-9707-8c5d299de3e2)

Notes

I tried to change jobs in the cargo configuration from 8 (logical CPUs) to 1, because when compiling, my phone lags, I thought the problem was stability. Lags are eliminated, but it didnโ€™t help

Then I tried just wasm-bingen, it works fine

๐Ÿค” Expected Behavior

I wanted the command to work

๐Ÿ‘Ÿ Steps to reproduce

  1. type "cargo install wasm-pack"
  2. create template rust project for wasm:
    
    use wasm_bindgen::prelude::*;

[wasm_bindgen]

extern { fn alert(s: &str); }

[wasm_bindgen]

pub fn greet(name: &str) { alert(&format!("Hello, {}!", name)); }


3. type "wasm build --target web"

#### ๐ŸŒ Your environment
rustc version: 1.70.0

Debian linux installed in termux v 0.118.0 (Termux last update on F-droid)

Linux  installed with help of app Andronix (free instalation with xfce desktop): https://play.google.com/store/apps/details?id=studio.com.techriz.andronix

I have phone with Android 12 with fixed max_phantom_processes issue by me with adb
lucashorward commented 1 year ago

The screenshot doesn't show, so perhaps you could (re) share the output and/or error you got?

Trame0 commented 1 year ago

The screenshot doesn't show, so perhaps you could (re) share the output and/or error you got?

I did not wait for the download apparently, fixed