23 stable releases

1.5.1 Mar 11, 2024
1.3.3 Dec 8, 2023
1.3.0 Oct 9, 2023
1.2.5 Nov 9, 2022
1.1.1 Jun 28, 2022

#37 in Compression

Download history 1/week @ 2024-02-18 16/week @ 2024-02-25 498/week @ 2024-03-03 372/week @ 2024-03-10 17/week @ 2024-03-17 78/week @ 2024-03-31

505 downloads per month

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

~8–20MB
~295K SLoC