PackageTrack
Sign in Get early access

self-replace

Utility crate that allows executables to replace or uninstall themselves

1.5.0 12M downloads/mo #2850 most downloaded on crates.io mitsuhiko/self-replace

What this package is like to depend on

Last release 2 years ago

no release in 18 months

Release timing varies

gaps range from 3 weeks to 10 months

Nearly every release is documented

notes for 12 of 12 stable releases

1 version withdrawn

withdrawn after publishing

3 years old

13 releases · first in 2023

0 releases in the last 12 months

see the full history below

Release timeline

13 releases · May 2023 to Sep 2024
2024 2025 2026
Release Pre-release Withdrawn

Releases

latest 13
  1. 1.5.0 01 Sep 2024
    Release notes
    • Raised MSRV to 1.63 and upgraded windows-sys to 0.52. #26
    Open source →
  2. 1.4.0 21 Jul 2024
    Release notes
    • Added self_delete_at. #22
    Open source →
  3. 1.3.7 19 Sep 2023
    Release notes
    • Fix windows dependency. #16
    • Fix examples failing to run on non unix platforms.
    Open source →
  4. 1.3.6 25 Aug 2023
    Release notes
    • Symlinks are now properly resolved. This allows replacing the executable when it's invoked via a symlink. #18
    Open source →
  5. 1.3.5 03 Jun 2023
    Release notes

    Fix incorrect release (1.3.5)

    Open source →
    Release notes
    • Explicitly pass the process handle on Windows simplifying the implementation.
    • Change the dummy command to use on windows away from ping.exe to cmd.exe.
    • More correctly invoke CreateProcessA on Windows.
    Open source →
  6. 1.3.4 03 Jun 2023 withdrawn
    Release notes

    yanked invalid release

    Open source →
  7. 1.3.3 19 May 2023
    Release notes
    • Avoid the use of atexit and spawn immediately. This has the advantage that even if the process crashes hard, we already have started the cleanup handler.
    • Improve safety of the crate for Windows by avoiding unsupported life before main.
    Open source →
  8. 1.3.2 18 May 2023
    Release notes
    • Use an atomic rename on Windows in the self replacement case for the final step to avoid accidentally leaving partial executables behind.
    • Resolved an issue where a potentially incorrect filename was computed on Windows in some cases.
    • A temporary folder is now always preferred on windows for the temporary operations if possible. This code path now also works correctly.
    Open source →
  9. 1.3.1 17 May 2023
    Release notes
    • Fixes a bug that caused the wrong path to be calculated internally creating an access error in some cases.
    Open source →
  10. 1.3.0 17 May 2023
    Release notes
    • Added support for self_delete_outside_path to support more complex uninstallation scenarios on Windows.
    Open source →
  11. 1.2.0 16 May 2023
    Release notes
    • Improve a race condition on Windows.
    Open source →
  12. 1.1.0 14 May 2023
    Release notes
    • Support older rustc releases.
    Open source →
  13. 1.0.0 14 May 2023
    Release notes
    • Initial release.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive