From 5be774b2e5bfe4c55eeed0c39646f09dcfccc48b Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Thu, 12 Nov 2020 09:39:42 -0600 Subject: [PATCH] these changes reduce size by 24mb (#2747) --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 564c5000e..5dcdee0dd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -118,6 +118,12 @@ tree = ["nu_plugin_tree"] xpath = ["nu_plugin_xpath"] selector = ["nu_plugin_selector"] +[profile.release] +#strip = "symbols" #Couldn't get working +nightly +opt-level = 'z' #Optimize for size +lto = true #Link Time Optimization +codegen-units = 1 #Reduce parallel codegen units + # Core plugins that ship with `cargo install nu` by default # Currently, Cargo limits us to installing only one binary # unless we use [[bin]], so we use this as a workaround