Hi there!
Would it be possible to distribute the wasm-pack binary via cargo, instead of requiring users to run curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh?
It would make keeping track of the installation easier and would automatically provide the binary when wasm-pack is added as dependency to cargo.toml.
Rust bindgen also distributes via cargo.
Although it isn't well advertised, you actually can do cargo install wasm-pack. Of course this will build the binary from source, because Cargo doesn't currently support shipping pre-compiled binaries.
Oh, I see! I think it would be nice to state this on that page as well: https://rustwasm.github.io/wasm-pack/installer/.
@PabloSichert It actually already does, but you have to click on the display all supported installers link (that's what I meant by "it isn't well advertised").
Maybe we could just always display it, without requiring a click on the link. @ashleygwilliams what do you think?
i definitely agree that we should not hide the additional installer instrucitons. i would happily accept a pull request for this.
i have had an issue open for this for a long time actually: https://github.com/rustwasm/wasm-pack/issues/355
i'm going to close this a duplicate :)
Most helpful comment
@PabloSichert It actually already does, but you have to click on the
display all supported installerslink (that's what I meant by "it isn't well advertised").Maybe we could just always display it, without requiring a click on the link. @ashleygwilliams what do you think?