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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to deploy release build? #121

Closed
Boscop opened this issue Jul 23, 2018 · 3 comments
Closed

How to deploy release build? #121

Boscop opened this issue Jul 23, 2018 · 3 comments

Comments

@Boscop
Copy link

Boscop commented Jul 23, 2018

> cargo web deploy
warning: debug builds on the wasm32-unknown-unknown are currently totally broken
         forcing a release build
    Finished release [optimized] target(s) in 0.60s
    Garbage collecting "frontend.wasm"...
    Processing "frontend.wasm"...
    Finished processing of "frontend.wasm"!
The `frontend` was deployed to "D:\\projects\\myproject\\target\\deploy"!

But I want to pass --release so that when this issue is fixed and release builds work, it will build with -release and wont accidentally deploy a debug build. So I tried cargo web deploy --release but:

> cargo web deploy --release
   Compiling stdweb v0.4.8
error: Could not compile `stdweb`.

error: build failed

rustc.exe crashes every time:

image

Like in #120

But why does it work without --release then, if that command actually does a release build? Shouldn't it behave the same then?

I also noticed the first time I passed --release it compiled all the deps again, even though the normal build should have already built the release versions of the deps, right?

@Pauan
Copy link
Contributor

Pauan commented Jul 23, 2018

Sounds like koute/stdweb#249

@Boscop
Copy link
Author

Boscop commented Jul 23, 2018

I'm on Win 8.1 btw.

@koute
Copy link
Owner

koute commented Jul 23, 2018

But why does it work without --release then, if that command actually does a release build? Shouldn't it behave the same then?

There is one difference between --target=wasm32-unknown-unknown --release and just --target=wasm32-unknown-unknown - compiling without --release emits debug info by default.

@koute koute closed this as completed Dec 12, 2018
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

3 participants