Optimizations for the release build profile

This commit is contained in:
Sayantan Santra 2023-02-26 02:27:28 -06:00
parent 6049f6beb6
commit d1b2fcf8a0
2 changed files with 9 additions and 2 deletions

View file

@ -1,6 +1,6 @@
[package] [package]
name = "movie-rename" name = "movie-rename"
version = "1.2.2" version = "1.2.3"
edition = "2021" edition = "2021"
authors = ["Sayantan Santra <sayantan[dot]santra689[at]gmail[dot]com"] authors = ["Sayantan Santra <sayantan[dot]santra689[at]gmail[dot]com"]
license = "GPL-3.0" license = "GPL-3.0"
@ -19,3 +19,10 @@ torrent-name-parser = "0.11.0"
tmdb = "3.0.0" tmdb = "3.0.0"
inquire = "0.5.3" inquire = "0.5.3"
load_file = "1.0.1" load_file = "1.0.1"
[profile.release]
strip = true
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"

View file

@ -18,4 +18,4 @@ uninstall:
rm -f "$(DESTDIR)$(PREFIX)/bin/$(PKGNAME)" rm -f "$(DESTDIR)$(PREFIX)/bin/$(PKGNAME)"
rm -f "$(DESTDIR)$(PREFIX)/man/man1/$(PKGNAME).1" rm -f "$(DESTDIR)$(PREFIX)/man/man1/$(PKGNAME).1"
.PHONY: build build-debug install clean uninstall .PHONY: build build-debug install clean uninstall aur