diff options
author | a-kenji <aks.kenji@protonmail.com> | 2022-05-22 12:48:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-22 12:48:34 +0200 |
commit | d26773070449504177ad1cfd94f0fcd120e4e9d8 (patch) | |
tree | dc6b4b7925070defe1ad3f23dce62ef840550222 | |
parent | aff1214d1ee078714b694ff3e845d2365f59cf35 (diff) |
build: strip debug symbols (#1177)
* build: strip debug symbols
Stripping the symbols for the release build drops binary size
currently by 20% and the plugin binaries by up to 50%.
Alternative: Keep the debug symbols also on releases
* bump(rust): `1.58.0` -> `1.59.0`
* chore: bump MSRV `1.56` -> `1.59`
Needed for cargos strip-debug feature
-rw-r--r-- | Cargo.toml | 3 | ||||
-rw-r--r-- | rust-toolchain.toml | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml index 030cc4744..b07b89e9a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" repository = "https://github.com/zellij-org/zellij" homepage = "https://zellij.dev" include = ["src/**/*", "assets/plugins/*", "assets/layouts/*", "assets/config/*", "LICENSE.md", "README.md", "!**/*_test.*", "!**/tests/**/*"] -rust-version = "1.56" +rust-version = "1.59" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -42,6 +42,7 @@ members = [ [profile.release] lto = true +strip = true [package.metadata.deb] depends = "$auto" diff --git a/rust-toolchain.toml b/rust-toolchain.toml index e37283b00..8c323d524 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,5 +1,5 @@ # This file is updated by `update-toolchain.sh` [toolchain] -channel = "1.58.0" +channel = "1.59.0" components = ["rustfmt", "clippy", "rust-analysis"] targets = ["wasm32-wasi", "x86_64-unknown-linux-musl"] |