-
Notifications
You must be signed in to change notification settings - Fork 410
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to rebuild upon changes to rust source? #185
Comments
Hmmm this is unclear I guess, but you use init as the command to build it as well! cc/ @ashleygwilliams maybe we need to consider different commands or verbiage? Or just better docs. |
Sure you could use
For now I've put that in a script and invoke it using a Makefile but I'm curious how other's workflow looks. Maybe this is outside the scope of wasm-pack? |
So there's a problem outlined in #115 that we kept running into. There's a flag added in https://github.com/ashleygwilliams/wasm-pack/issues/144 that will make it easy to just skip that stuff that makes the build take forever that's being released (hopefully) today. We are trying to make the tool handle, if I need to upgrade bindgen how and how is it tied to this version for the program. It's just something we haven't necessarily gotten around too/found the best solution to yet. It's not outside the scope of wasm-pack! We're just trying to figure out some things and wasm-bindgen is kind of the main driver of those since it's development is in flux. |
yeah i was actually gonna make a |
Cool, that will do the job I think. In terms of expectation, I would probably expect either |
@mtharrison a first pass at fixing this is landing in today's 0.4.0 release, you can invoke it as |
That's great news, thanks! |
The docs mention
wasm-pack init
to initialize a project with wasm-pack. This creates the package files in pkg by performing quite a few steps and takes a while (2 mins on a smallish project for me).My question is when I make changes to the Rust source how do I then just rebuild what is in pkg? Do I invoke Rust compiler and
wasm-bindgen
manually, or does wasm-pack provide something like abuild
command that only does this?Also do you think it's useful to mention this in docs? If so, I'm happy to make a PR for that.
The text was updated successfully, but these errors were encountered: