feat: justfile for experimenting with smaller binaries

This commit is contained in:
Muhammad Nauman Raza 2024-05-05 23:04:09 +01:00
parent 5347a9105e
commit 64b8c6af95
Signed by: devraza
GPG key ID: 91EAD6081011574B

15
justfile Normal file
View file

@ -0,0 +1,15 @@
set export
RUSTFLAGS := "-Zlocation-detail=none"
target := `rustc -Vv | awk 'FNR == 5 {print $2}'`
# Build for a small executable
tiny:
cargo +nightly build \
-Z build-std=std,panic_abort \
-Z build-std-features=panic_immediate_abort \
--target {{target}} --release
# Normal build, in this file for no good reason
build:
cargo build --release