diff --git a/Cargo.toml b/Cargo.toml index 85e44a1..9e2e527 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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' diff --git a/pubky/Cargo.toml b/pubky/Cargo.toml index 09d2a44..d71c0bb 100644 --- a/pubky/Cargo.toml +++ b/pubky/Cargo.toml @@ -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']