notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit f425f72fd1ec3596cef5fdf0fd8dbc4ff5fae969
parent 548325c478fc1ea74271c47d11ef0cb8e4139fed
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 30 Sep 2023 20:45:38 -0700

build: add small profile

Diffstat:
MCargo.toml | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml @@ -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"