chore(pubky): slight size optimization for wasm bundle size

This commit is contained in:
nazeh
2024-07-29 09:22:59 +03:00
parent d050866cce
commit 9bef331da0
2 changed files with 7 additions and 0 deletions

View File

@@ -3,3 +3,7 @@ members = [ "pubky","pubky-*"]
# See: https://github.com/rust-lang/rust/issues/90148#issuecomment-949194352
resolver = "2"
[profile.release]
lto = true
opt-level = 'z'

View File

@@ -47,3 +47,6 @@ tokio = "1.37.0"
[package.metadata.docs.rs]
all-features = true
# [package.metadata.wasm-pack.profile.release]
# wasm-opt = ['-g', '-O']