Size optimization options
@@ -4,6 +4,13 @@ version = "0.20.0"
edition = "2018"
description = "tonsdk WASM binding"
+[package.metadata.wasm-pack.profile.release]
+wasm-opt = ['-Os']
+
+[profile.release]
+lto = true
+opt-level = 's'
+
[lib]
name = "ton_client_web"
crate-type = ["staticlib", "cdylib"]
