24 stable releases

1.5.2 Apr 18, 2024
1.5.1 Mar 11, 2024
1.3.3 Dec 8, 2023
1.3.0 Oct 9, 2023
1.1.1 Jun 28, 2022

#121 in Compression

MIT/Apache

3.5MB
1K SLoC

Contains (Mach-o exe, 2.5MB) bin/macos/x86_64/upx, (Mach-o exe, 2.5MB) bin/macos/aarch64/upx, (ELF exe, 575KB) bin/linux/aarch64/upx, (ELF exe, 565KB) bin/linux/x86_64/upx, (DOS exe, 565KB) bin/windows/x86_64/upx.exe

cargo-zbuild

Cargo command line tools for cross platform release build in one step.

  • Optimize release profile for size
  • Compile std library for nightly channel
  • If cross-compiling, use the cross
  • Upx use --best and --lzma (MacOS uses a special implementation)

Support Platform

  • Windows
  • MacOS
  • Linux

Install

  • Install From Crates.io: cargo install cargo-zbuild
  • Install From Local: cargo install --path .

Usage

  • Command Line: cargo zbuild [options]

Attention

For MacOS cross-compilation, please refer to the Cross documentation to prepare your own Docker image.

Dependencies

~9–24MB
~304K SLoC