mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-30 14:34:23 +01:00
build: add small profile
This commit is contained in:
@@ -35,6 +35,14 @@ puffin = { version = "0.16.0", optional = true }
|
||||
default = []
|
||||
profiling = ["puffin", "puffin_egui", "eframe/puffin"]
|
||||
|
||||
[profile.small]
|
||||
inherits = 'release'
|
||||
opt-level = 'z' # Optimize for size
|
||||
lto = true # Enable link-time optimization
|
||||
codegen-units = 1 # Reduce number of codegen units to increase optimizations
|
||||
panic = 'abort' # Abort on panic
|
||||
strip = true # Strip symbols from binary*
|
||||
|
||||
# web:
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
console_error_panic_hook = "0.1.6"
|
||||
|
||||
Reference in New Issue
Block a user