Packaging

From Rust Community Wiki
Jump to navigation Jump to search

Packaging is the process of creating, modifying and bundling the files your application needs to function outside your development environment. It may also include creating installers and/or artifacts for particular package managers or operating systems.

There are a couple of crates which let you package your application for desktop or server environment:

  • Cargo vec.svgcargo-apk - Build .apk files for Android.
  • Cargo vec.svgcargo-arch - Arch Linux (PKGBUILD).
  • Cargo vec.svgcargo-bundle - .app for macOS and iOS, .deb for Linux and .msi for Windows (README says that Windows and macOS support is experimental). There are also plans for .rpm support for Linux and .apk support for Android.
  • Cargo vec.svgcargo-deb - Build .deb packages for Linux.
  • Cargo vec.svgcargo-makepkg - Arch Linux (PKGBUILD). Might be abandoned.
  • Cargo vec.svgcargo-pkgbuild - Arch Linux (PKGBUILD).
  • Cargo vec.svgpkger - .rpm and .rpm. Uses docker?
  • Cargo vec.svgcargo-rpm - Build .rpm packages for Linux.
  • Cargo vec.svgpackapp - Formerly Cargo vec.svgcargo-app . Build .app bundles for macOS.

There are some other crates which are somewhat orthogonal to the above crates, but are nevertheless useful for application distribution.

  • Cargo vec.svgrelease-manager - Build your crate for multiple architectures and operating systems in one go. Might be abandoned.
  • Cargo vec.svgcargo-tarball - Documentation seems sparse/non-existent. Presumably creates tarballs with your executables.

There are also some crates which target web technologies:

TODO: Look closer at the following crates: