From 42942fc66215b1bc63817e679b2fd7e18579b78f Mon Sep 17 00:00:00 2001 From: Giles Cope Date: Thu, 9 Jan 2020 22:11:25 +0000 Subject: Reducing binary size and optimising a bit more. --- .github/workflows/release.yaml | 2 +- Cargo.toml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3d45413e1..eff68a95c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -78,7 +78,7 @@ jobs: - name: Copy binaries (non-win) if: matrix.os != 'windows-latest' - run: cp ./target/${{ env.PROFILE }}/ra_lsp_server* ./dist + run: cp ./target/${{ env.PROFILE }}/ra_lsp_server ./dist - name: Copy binaries (win) if: matrix.os == 'windows-latest' diff --git a/Cargo.toml b/Cargo.toml index 97508c57b..3753a4143 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,8 @@ debug = 0 [profile.release] incremental = true +lto = true +codegen-units = 1 debug = 0 # set this to 1 or 2 to get more useful backtraces in debugger [patch.'crates-io'] -- cgit v1.2.3