fjordgard

A desktop clock application
Log | Files | Refs | README | LICENSE

commit 4a9722f46e4f8224f5c461118b62f3fc4a4146a5
parent dfb6db868a0774d50d839abe8972918f360f641f
Author: Sylvia Ivory <git@sivory.net>
Date:   Fri, 20 Jun 2025 03:12:56 -0700

Optimize wasm building

Diffstat:
MCargo.toml | 7+++++++
Mindex.html | 11+++++++----
2 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml @@ -9,6 +9,13 @@ name = "fjordgard" version = "0.1.0" edition = "2024" +[profile.wasm] +lto = true +codegen-units = 1 +opt-level = "z" +inherits = "release" +strip = "debuginfo" + [dependencies] anyhow = "1.0.98" chrono = "0.4.41" diff --git a/index.html b/index.html @@ -1,12 +1,15 @@ <!DOCTYPE html> <html lang="en" style="height: 100%"> + <head> - <meta charset="utf-8" content="text/html; charset=utf-8"/> - <meta name="viewport" content="width=device-width, initial-scale=1"/> + <meta charset="utf-8" content="text/html; charset=utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + <title>Fjordgard</title> - <base data-trunk-public-url/> </head> + <body style="height: 100%; margin: 0"> -<link data-trunk rel="rust" href="Cargo.toml" data-wasm-opt="z"/> + <link rel="rust" href="Cargo.toml" data-trunk data-wasm-opt="z" data-weak-refs data-reference-types /> </body> + </html>