Answer#
cargo build --release gives you one executable. To hand it to someone you decide what they download and how it installs. The three realistic forms:
| Form | Windows | macOS |
|---|---|---|
| A plain archive | a .zip with the .exe and its files; the user unzips it anywhere | a .zip of the .app bundle |
| An installer or disk image | an .msi or an .exe installer that copies files, adds Start-menu shortcuts and an uninstall entry | a .dmg disk image containing the .app for the user to drag to Applications |
| A store | Microsoft Store | Mac App Store (separate rules and signing) |
Tools that automate the middle row, according to their own README files:
- cargo-wix is a Cargo subcommand that builds a Windows installer (MSI) with the WiX Toolset.
cargo wix initcreates awixfolder with amain.wxsfile you can edit, andcargo wixbuilds the MSI intotarget\wix. It runs on Windows and needs the WiX Toolset installed. It can also sign the installer when you have a certificate. - cargo-bundle generates "installers or app bundles for GUI executables built with cargo". It reads
[package.metadata.bundle]settings fromCargo.toml(name, identifier, icon, resources). Its README lists macOS.appbundles and.dmgoutput,.deband AppImage for Linux, and.msifor Windows, which the README marks as experimental. - cargo-packager describes itself as an "Executable packager, bundler and updater". Its README lists NSIS (
.exe) and WiX (.msi) installers for Windows and.appand.dmgfor macOS, and a companion updater crate. - Writing it yourself is also fine for a simple app: a script that copies files into a folder and zips it, or, for macOS, creates the bundle (see the bundle thread).
How to choose:
- Start with a zip if your users are developers or the app is a single file. It needs no installer code and nothing to uninstall.
- Use an MSI or installer on Windows if you need shortcuts, file associations, per-machine installation or enterprise deployment.
- Use a
.dmgon macOS for the usual drag-to-Applications experience. - Sign everything you ship. Unsigned downloads trigger warnings; see the signing threads.
Common mistakes#
- Producing the macOS bundle on Windows (file permissions are not kept); build it on a Mac or a macOS CI runner.
- Installing into
Program Filesand then writing data there; see the settings thread. - Forgetting an uninstall path.
Related questions#
Do I need all of these tools?#
No. Pick one per platform. Check each project's README for the version of Rust or of WiX it needs, because those requirements change.
Sources#
- cargo-wix: https://github.com/volks73/cargo-wix (read 2026-12-05)
- cargo-bundle: https://github.com/burtonageo/cargo-bundle (read 2026-12-05)
- cargo-packager: https://github.com/crabnebula-dev/cargo-packager (read 2026-12-05)