From ac8a145ae33e72b62e017749fd0d3e1887d3999e Mon Sep 17 00:00:00 2001 From: ControlCplusControlV <44706811+ControlCplusControlV@users.noreply.github.com> Date: Fri, 23 Dec 2022 19:14:21 -0700 Subject: [PATCH] feat: reduce binary size (#160) * reduced bin size * Update README.md --- Cargo.toml | 7 +++++++ README.md | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 3e617cf..8601e3d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,6 +34,13 @@ plotters = "0.3.3" tempfile = "3.3.0" hex = "0.4.3" +[profile.release] +strip = true +opt-level = "z" +lto = true +codegen-units = 1 +panic = "abort" + ###################################### # Examples ###################################### diff --git a/README.md b/README.md index 44bbe6a..724f833 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Helios is a fully trustless, efficient, and portable Ethereum light client writt Helios converts an untrusted centralized RPC endpoint into a safe unmanipulable local RPC for its users. It syncs in seconds, requires no storage, and is lightweight enough to run on mobile devices. -The entire size of Helios's binary is 13Mb and should be easy to compile into WebAssembly. This makes it a perfect target to embed directly inside wallets and dapps. +The entire size of Helios's binary is 5.3Mb and should be easy to compile into WebAssembly. This makes it a perfect target to embed directly inside wallets and dapps. ## Installing