From 493a0e377dd39c780dbcce3bd38dde90360659a3 Mon Sep 17 00:00:00 2001 From: mpostma Date: Thu, 7 Oct 2021 11:49:52 +0200 Subject: [PATCH 1/2] optimize build size --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 44732839f..accea6de0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,8 +6,8 @@ members = [ ] resolver = "2" -[profile.release] -debug = true +[build] +rustflags = "-C link-args=-s" [patch.crates-io] pest = { git = "https://github.com/pest-parser/pest.git", rev = "51fd1d49f1041f7839975664ef71fe15c7dcaf67" } From 14c6ae4735b4cab6dfcce79e592e935a2c9a06ba Mon Sep 17 00:00:00 2001 From: mpostma Date: Thu, 7 Oct 2021 12:10:36 +0200 Subject: [PATCH 2/2] disable stripping --- Cargo.toml | 3 --- 1 file changed, 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index accea6de0..02e9813a4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,8 +6,5 @@ members = [ ] resolver = "2" -[build] -rustflags = "-C link-args=-s" - [patch.crates-io] pest = { git = "https://github.com/pest-parser/pest.git", rev = "51fd1d49f1041f7839975664ef71fe15c7dcaf67" }