24 stable releases

new 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

#37 in Compression

Download history 15/week @ 2024-02-22 187/week @ 2024-02-29 605/week @ 2024-03-07 95/week @ 2024-03-14 2/week @ 2024-03-21 54/week @ 2024-03-28 24/week @ 2024-04-04

198 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–21MB
~296K SLoC