diff --git a/Cargo.toml b/Cargo.toml index e73f80dd513311e4a5edbfbd222119018ecbd90c..4f57c9def534e297aaefd672b0a61311cd1169cb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,10 @@ wgpu = "30.0.1" [patch.crates-io] sctk-adwaita = { path = "vendor/sctk-adwaita" } +[profile.release] +lto = "fat" +codegen-units = 1 + # Shaping, rasterization and GPU submission stay optimised in debug builds, where # unoptimised dependencies alone drop frames. [profile.dev.package."*"] diff --git a/tools/release_web.py b/tools/release_web.py index faca19e7b9cc4091c1850a7e323125b941761df5..cbfd344d988b1a8713259fb5ba2debfd8a1abe4c 100644 --- a/tools/release_web.py +++ b/tools/release_web.py @@ -22,8 +22,7 @@ PUBLISHED = Path('/Volumes/clover/Documents/Public/Snowbound/web') # copyparty lists the folder itself, so the app is at its index.html. URL = 'https://file.paperclover.net/shr/snowbound/web/index.html' # Size over speed where it costs little: the module is most of the first load. -PROFILE = ['--config', 'profile.release.lto=true', '--config', 'profile.release.codegen-units=1', - '--config', 'profile.release.opt-level="s"'] +PROFILE = ['--config', 'profile.release.opt-level="s"'] def run(command, **kwargs):