[package] name = "yew-website-example" version = "0.1.0" edition = "2021" [lib] crate-type = ["cdylib"] [[bin]] name = "yew-website-example" path = "src/main.rs" [dependencies] # Framework dependency (WASM-compatible mode without crypto to avoid wasm-opt issues) framework = { path = "../..", features = ["wasm-compatible"] } # Yew and web dependencies yew = { version = "0.21", features = ["csr"] } yew-router = "0.18" wasm-bindgen = "0.2" wasm-bindgen-futures = "0.4" web-sys = "0.3" js-sys = "0.3" gloo = "0.11" serde-wasm-bindgen = "0.6" # Serialization serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" log = "0.4" console_log = "1.0" [profile.release] # Optimize for size opt-level = "z" # Enable link-time optimization lto = true # Use a single codegen unit for better optimization codegen-units = 1 # Abort on panic instead of unwinding (smaller binary) panic = "abort" # Strip debug symbols strip = true # Optimize for size over speed debug = false # Reduce binary size further overflow-checks = false [profile.release.package."*"] # Apply size optimizations to all dependencies opt-level = "z" strip = true