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

#48 in Compression

Download history 6/week @ 2024-02-20 11/week @ 2024-02-27 705/week @ 2024-03-05 177/week @ 2024-03-12 5/week @ 2024-03-19 7/week @ 2024-03-26 71/week @ 2024-04-02 126/week @ 2024-04-16 5/week @ 2024-04-23

131 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–19MB
~291K SLoC