mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Use panic = "abort" for slightly faster compilation
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user