Wasm-pack: Distribute wasm-pack binary via cargo

Created on 6 Dec 2019  路  4Comments  路  Source: rustwasm/wasm-pack

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.

duplicate

Most helpful comment

@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?

All 4 comments

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 :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Bernd-L picture Bernd-L  路  3Comments

ishitatsuyuki picture ishitatsuyuki  路  5Comments

RReverser picture RReverser  路  3Comments

grovesNL picture grovesNL  路  4Comments

turboladen picture turboladen  路  4Comments