Use `panic = "abort"` for slightly faster compilation
This commit is contained in:
parent
4b1523ad51
commit
be1f6cd699
|
@ -32,16 +32,21 @@ opt-level = 2 # fast and small wasm, basically same as `opt-level = 's'`
|
|||
|
||||
# debug = true # include debug symbols, useful when profiling wasm
|
||||
|
||||
panic = "abort" # This leads to better optimizations and smaller binaries (and is the default in Wasm anyways).
|
||||
|
||||
|
||||
[profile.dev]
|
||||
# Can't leave this on by default, because it breaks the Windows build. Related: https://github.com/rust-lang/cargo/issues/4897
|
||||
# split-debuginfo = "unpacked" # faster debug builds on mac
|
||||
# opt-level = 1 # Make debug builds run faster
|
||||
|
||||
# Optimize all dependencies even in debug builds (does not affect workspace packages):
|
||||
panic = "abort" # This leads to better optimizations and smaller binaries (and is the default in Wasm anyways).
|
||||
|
||||
[profile.dev.package."*"]
|
||||
# Optimize all dependencies even in debug builds (does not affect workspace packages):
|
||||
opt-level = 2
|
||||
|
||||
|
||||
[workspace.dependencies]
|
||||
puffin = "0.18"
|
||||
raw-window-handle = "0.5.0"
|
||||
|
|
Loading…
Reference in New Issue