mirror of
https://github.com/svenstaro/miniserve
synced 2024-07-03 08:08:47 +00:00
Activate lto for binary size reductions
This commit is contained in:
parent
58526c863a
commit
4f2f3a435e
|
@ -13,6 +13,9 @@ categories = ["command-line-utilities", "command-line-interface"]
|
|||
travis-ci = { repository = "svenstaro/miniserve", branch = "master" }
|
||||
maintenance = { status = "actively-developed" }
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
|
||||
[dependencies]
|
||||
clap = "2.29"
|
||||
actix = "0.5"
|
||||
|
|
12
Makefile
12
Makefile
|
@ -1,17 +1,17 @@
|
|||
.PHONY: build-linux
|
||||
build-linux:
|
||||
cargo build --target x86_64-unknown-linux-musl --release
|
||||
strip target/x86_64-unknown-linux-musl/release/genact
|
||||
upx target/x86_64-unknown-linux-musl/release/genact
|
||||
strip target/x86_64-unknown-linux-musl/release/miniserve
|
||||
upx target/x86_64-unknown-linux-musl/release/miniserve
|
||||
|
||||
.PHONY: build-win
|
||||
build-win:
|
||||
RUSTFLAGS="-C linker=x86_64-w64-mingw32-gcc" cargo build --target x86_64-pc-windows-gnu --release
|
||||
strip target/x86_64-pc-windows-gnu/release/genact.exe
|
||||
upx target/x86_64-pc-windows-gnu/release/genact.exe
|
||||
strip target/x86_64-pc-windows-gnu/release/miniserve.exe
|
||||
upx target/x86_64-pc-windows-gnu/release/miniserve.exe
|
||||
|
||||
.PHONY: build-apple
|
||||
build-apple:
|
||||
cargo build --target x86_64-apple-darwin --release
|
||||
strip target/x86_64-apple-darwin/release/genact
|
||||
upx target/x86_64-apple-darwin/release/genact
|
||||
strip target/x86_64-apple-darwin/release/miniserve
|
||||
upx target/x86_64-apple-darwin/release/miniserve
|
||||
|
|
Loading…
Reference in New Issue
Block a user