# self_update

> Self updates for Rust executables, from GitHub, GitLab, Gitea, Gitee, S3 or a static manifest

Source: https://talira.ai/catalog/self-update-4dv6kjn4
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [devops / release management / self update](https://talira.ai/categories/devops/release-management/self-update), [languages / rust](https://talira.ai/categories/languages/rust)
- Platforms: linux, macos, windows[^1]
- Licence: MIT[^2]
- Pricing: Free and open source[^2]
- Pricing notes: Free and open source (MIT).
- Free tier: yes[^2]
- Self-hostable: yes[^1]
- Creator: James Kominick (jaemk)

self_update is a Rust crate that lets a command-line program replace its own executable with the newest release. A builder looks up releases on [GitHub](https://talira.ai/catalog/github-ppcgj756.md) (the default), [GitLab](https://talira.ai/catalog/gitlab-y85n5jcy.md), [Gitea](https://talira.ai/catalog/gitea-6a3pktfs.md), Gitee, an S3-compatible bucket or a `manifest.json` on any static host, picks the asset for the running platform, downloads and extracts it, and swaps the binary in place. Optional features verify downloads against checksums or zipsign signatures, update a whole [macOS](https://talira.ai/catalog/macos-8swyggxb.md) `.app` bundle as one unit with rollback, and add async methods. It's MIT-licensed and written by James Kominick.

## Links

- GitHub: https://github.com/jaemk/self_update
- Docs: https://docs.rs/self_update

## Problems it solves

- add an update subcommand to my Rust CLI that downloads the latest GitHub release and replaces the binary
- my command-line tool should upgrade itself in place without going through a package manager
- check whether a newer version of my program exists and prompt the user before installing it
- update a Rust binary from releases stored in a private S3 bucket
- self-update a tool from GitLab or Gitea releases instead of GitHub
- verify the downloaded release against a SHA-256 checksum or signature before swapping the executable
- update a signed macOS .app bundle as a whole and roll back if the swap fails
- run an unattended self-update from a daemon without an interactive yes/no prompt
- serve updates for my app from a manifest.json on my own static file host

## Features

- release backends: GitHub, GitLab, Gitea, Gitee, S3-compatible storage and a static manifest.json
- picks the release asset for the running target and replaces the executable in place
- tar, zip, gzip, xz and bzip2 archive support behind cargo features
- checksum verification against GitHub's per-asset digests or a SHA256SUMS file
- zipsign signature verification
- macOS .app bundle updates installed as one unit, restored on failure
- reqwest or ureq HTTP clients, rustls or native TLS
- optional async API on tokio
- download progress bar and confirmation prompt (can be turned off)
- ReleaseList API to list available releases

## Limitations

- Doesn't sign or notarize macOS apps: ship an already signed and notarized .app and it keeps what you shipped[^1]
- Doesn't install .deb or .msi packages: hand the downloaded file to dpkg or msiexec yourself[^1]

## Trust

Overall: 0.23 out of 1.
Signals: backing 0.20, extensibility 0.00.

- created by James Kominick (jaemk)

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [dist (cargo-dist)](https://talira.ai/catalog/dist-cargo-dist-2fm1ye6j.md): Shippable application packaging: build, sign and publish release binaries and installers from a git tag

## Sources

[^1]: https://github.com/jaemk/self_update/blob/master/README.md (checked 20 Nov 2026)
[^2]: https://github.com/jaemk/self_update/blob/master/Cargo.toml (checked 20 Nov 2026)
