-
Notifications
You must be signed in to change notification settings - Fork 404
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
document overflow-checks #675
Comments
I don't think that we want to change whether overflow checks are enabled or not for a given profile by default. If building with the debug profile, we should use the debug profile's defaults for overflow checks, and same thing for release profile. Changing that behavor is veering off too much from standard configurations for my taste. I don't know if either @alexcrichton or @ashleygwilliams feel that this point changes the calculus of whether the default profile should be release or debug, though. I don't have strong opinions. |
I agree that we shouldn't change the default |
I'd like to clarify that I don't suggest to change the default [profile.release]
overflow-checks = true |
Ah good point! I'm personally always down for documentation updates which mention things like that |
What was the reason to make |
IIRC it was because many users coming from JS may not know about a debug/optimized distinction and if rust/wasm is evaluated with the results of |
@alexcrichton Yeah, I vaguely remember something about users complaining about file size/performance (which are quite bad in debug mode). |
Well, I wanted to gather some feedback and to propose either changind defaults to It doesn't deny the need in a good documentation for everything. |
Consider the following code:
The build command is
Initialization js is
Expected result (from JS perspective) is either 400 or error
Actual result is 144
Possible fix is to enable overflow checks in
Cargo.toml
The problem here is that it's a default build, which produces a wrong result silently.
Making debug builds by default was already discussed in #437
I'd like to bring this topic again and collect some feedback here
Environment details:
The text was updated successfully, but these errors were encountered: